myonlinestore/phpunit-skeleton

A tool to create phpunit skeletons for your files

1.0.4 2018-07-12 08:04 UTC

This package is auto-updated.

Last update: 2024-04-17 00:02:32 UTC


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