PHPUnit
Installation on Debian/Unix: wget https://phar.phpunit.de/phpunit.phar chmod +x phpunit.phar mv phpunit.phar /usr/local/bin/phpunit phpunit --version Or install from composer, { "require-dev": { "phpunit/phpunit": "^5.4" } } OR composer global require-dev phpunit/phpunit For global access, composer global install Files will be downloaded to ~/.composer/vendor/bin/ So, we need to set the PATH variable for global access, export PATH=~/.composer/vendor/bin:$PATH For update package, composer global update How phpunit works in Yii: All the test files need to be follow the unique naming convension, file name should be end up with 'Test' : databaseTest.php class name shoud be the same as filename and it should extends from phpunit testcase class, ex: include_once ('framework/database.php'); - The original class file class databaseTest extends PHPUnit_Framework_TestCase { protected $con...