| /dev/null
Blog: PHP, Python, Linux, Web services & Continuous delivery

Tag: PHPUnit

To generate a skeleton unit test when using a framework with autoloading you need to provide the bootstrap file or phpunit will not be able to find any parent classes.

phpunit-skelgen --bootstrap path/to/bootstrap/Bootstrap.php --test -- "namespace\qualified\Classname" Classname

The above assumes that you are running the command from within the directory that contains the class.

Read more