Skip to content

Latest commit

 

History

History
 
 

tests

This folder contains unit tests of Yii framework.
PHPUnit 3.5+ and xdebug (for code coverage report) are required.

To run a single unit test, use:
>> phpunit path/to/test.php

To run all tests under a directory, use:
>> phpunit --verbose path/to/tests/directory

To generate code coverage report:
>> phpunit --coverage-html reports path/to/tests/directory/or/test/class

Please use 'phpunit --help' to see more command line options.