kdaviesnz/phpunittestcreator

Create unit tests for classes.

1.0.5 2018-06-02 21:24 UTC

This package is not auto-updated.

Last update: 2024-04-28 21:07:38 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.

PHPUnitTestCreator