myonlinestore / phpunit-skeleton
A tool to create phpunit skeletons for your files
1.0.4
2018-07-12 08:04 UTC
Requires
- php: ^7.2.0
- roave/better-reflection: ~3
- symfony/console: ^3.0
Requires (Dev)
- escapestudios/symfony2-coding-standard: ^3.4
- kherge/box: ^2.7
- phpunit/phpunit: ^6.5
- squizlabs/php_codesniffer: ^3.2
README
tool to create phpunit skeleton for files
Generates een skeleton file for your php file. Includes mocks for all constructor dependencies and initialzes the class with these dependencies.
usage:
./phpunit-skeleton.phar create [filename]
building a new version of the phar (with box)
./vendor/bin/box build
also included is a bash script which you can give a commmit hash and it will create unittests for all added files from that hash