June 2017
Intermediate to advanced
536 pages
9h 49m
English
PHPUnit can be installed as, provisionally named, a tool or a library. Both are the same things actually, just differing in a way we install and use them. The tool version is really just a PHP phar archive we can run via console, which then provides a set of console commands we can execute globally. The library version on the other hand is a set of PHPUnit libraries packed as a Composer package, as well as a binary that gets dumped into the project's vendor/bin/ directory.
Assuming that we are using the Ubuntu 16.10 (Yakkety Yak) installation, installing the PHPUnit as a tool is easy via the following commands:
wget https://phar.phpunit.de/phpunit.pharchmod +x phpunit.pharsudo mv phpunit.phar /usr/local/bin/phpunit ...
Read now
Unlock full access