phpunitgen / core
The PhpUnitGen core features for tests generation.
Installs: 152 775
Dependents: 3
Suggesters: 0
Security: 0
Stars: 28
Watchers: 4
Forks: 4
Open Issues: 2
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- league/container: ^3.2
- phpdocumentor/reflection-docblock: ^5.2
- phpdocumentor/type-resolver: ^1.6
- roave/better-reflection: ^5.0 || ^6.0
- tightenco/collect: ^8.0 || ^9.0
Requires (Dev)
- mockery/mockery: ^1.3
- phpunit/phpunit: ^10.0
- dev-main
- 4.1.0
- 4.0.0
- 3.1.0
- 3.0.0
- 2.x-dev
- 2.0.0
- 2.0.0-alpha5
- 2.0.0-alpha4
- 2.0.0-alpha3
- 2.0.0-alpha2
- 2.0.0-alpha1
- 1.x-dev
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta1
- 1.0.0-alpha10
- 1.0.0-alpha9
- 1.0.0-alpha8
- 1.0.0-alpha7
- 1.0.0-alpha6
- 1.0.0-alpha5
- 1.0.0-alpha4
- 1.0.0-alpha3
- 1.0.0-alpha2
- 1.0.0-alpha1
This package is auto-updated.
Last update: 2024-04-18 20:56:20 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 core code of PhpUnitGen. If you want to use the tool on your browser, you can go on the webapp. If you want to use the tool on your console, you can install the command line 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.