phpunitgen / console
The PhpUnitGen command line features for tests generation.
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- ext-json: *
- league/container: ^3.3
- league/flysystem: ^3.0
- phpunitgen/core: ^4.0
- symfony/console: ^4.4 || ^5.0 || ^6.0 || ^7.0
- symfony/stopwatch: ^4.3 || ^5.0 || ^6.0 || ^7.0
- symfony/yaml: ^4.3 || ^5.0 || ^6.0 || ^7.0
- tightenco/collect: ^8.0 || ^9.0
Requires (Dev)
- laravel/framework: ^9.0
- mockery/mockery: ^1.3
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-04-18 20:56:26 UTC
README
⚠️ PhpUnitGen end of life
After 7 years of existence, PhpUnitGen is not maintained anymore. Read the post
Installation
The CLI tool can be installed using:
composer require --dev phpunitgen/console
Detailed information and webapp version are available at https://phpunitgen.io.
About PhpUnitGen
Note: this repository contains the console code of PhpUnitGen. If you want to use the tool on your browser, you can go on the webapp. If you want to see the core code, you should go on core package.
PhpUnitGen is an online and command line tool to generate your unit tests' skeletons on your projects.
Key features
- Generates tests skeletons for your PHP classes
- Binds with Laravel "make" command
- Generates class instantiation using dummy parameters or mocks
- Adapts to PHPUnit or Mockery mocks generation
PhpUnitGen is not meant to generate your tests content but only the skeleton (except for getters/setters).
This is because inspecting your code to generate the appropriate test is way too complex, and might result in missing some of the code's features or marking them as "passed unit test" even if it contains errors.
Roadmap
You can track the tasks we plan to do on our Taiga.io project.
Contributing
Please see CONTRIBUTING for more details.
Informal discussion regarding bugs, new features, and implementation of existing features takes place in the Github issue page of Core repository.
Credits
License
PhpUnitGen is an open-sourced software licensed under the MIT license.