kdaviesnz / phpunittestcreator
Create unit tests for classes.
1.0.5
2018-06-02 21:24 UTC
Requires
- php: ~7.0
- amphp/parallel-functions: v0.1.2
- kdaviesnz/functional: >=1.1.1
Requires (Dev)
- phpunit/phpunit: >=5.4.3
- squizlabs/php_codesniffer: ^2.3
This package is not auto-updated.
Last update: 2025-03-03 01:02:16 UTC
README
Create unit tests for classes.
Current restrictions:
- Only works with pure methods.
- Classes and functions that tests are to be generated for must be included.
See tests/PHPUnitTestCreator.json for example config file. Note config file must be named "PHPUnitTestCreator.json" and be in the same directory that you generate your tests.
Install
Via Composer
$ composer require kdaviesnz/PHPUnitTestCreator
Usage
See test.php file.
Change log
Please see CHANGELOG.md for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING.md and CODE_OF_CONDUCT.md for details.
Security
If you discover any security related issues, please email kdaviesnz@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see LICENSE.md for more information.