How To Install Phpunit In Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS?
Maintainer: Debian PHP PEAR Maintainers
Email: [email protected] .
Website: https://phpunit.de/
Section: php
Install phpunit
-
Debian
apt-get install phpunitClick to copy -
Ubuntu
apt-get install phpunitClick to copy -
Kali Linux
apt-get install phpunitClick to copy -
Fedora
dnf install phpunitClick to copy -
Raspbian
apt-get install phpunitClick to copy -
macOS
brew install phpunitClick to copy
PHPUnit command-line test runner.
How to use phpunit?
Below are few example commands for phpunit that you can use in the terminal.
Run tests in the current directory. Note: Expects you to have a 'phpunit.xml':phpunitClick to copyRun tests in a specific file:phpunit path/to/TestFile.phpClick to copyRun tests annotated with the given group:phpunit --group nameClick to copyRun tests and generate a coverage report in HTML:phpunit --coverage-html directoryClick to copy
Install the latest version of phpunit in Debian, Ubuntu, Kali, Fedora, Raspbian and macOS from terminal. To install the phpunit just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of phpunit from the respository and install it in your computer/server.




