myonlinestore / phpunit-skeleton
A tool to create phpunit skeletons for your files
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 0
pkg:composer/myonlinestore/phpunit-skeleton
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