cleatsquad / php-unit-tests-generator
PhpUnit test generator
1.0.0
2022-11-20 19:12 UTC
Requires
- php: ~7.4||~8.0||~8.1
- symfony/console: ~4.4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-12-20 23:56:09 UTC
README
This package allows you to generate unit tests. This package is recommended for magento 2.
Badges
Getting Started
Installing
Add dependency
composer require cleatsquad/php-unit-tests-generator --dev
Examples
You can use it to generate tests for all classes in a folder
bin/magento dev:unit:test-generate /app/code/Vendor/Module/pathtest-generate
Or use it for a specified file
bin/magento dev:unit:test-generate /app/code/Vendor/Module/path/to/file.php
Examples
@todo add origin class and generated test
Authors
- Mohamed El Mrabet - Initial work - mimou78
License
This project is licensed under the MIT License - see the LICENSE.md file for details