wickedone / muppet-bundle
symfony bundle for muppet test generator
Installs: 585
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 5
Type:symfony-bundle
Requires
- php: >=7.4 || ^8.0
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- symfony/config: ^5.3
- symfony/console: ^5.4
- symfony/framework-bundle: ^5.4
- wickedone/muppet: ^2.0
Requires (Dev)
- escapestudios/symfony2-coding-standard: ^3.0
- friendsofphp/php-cs-fixer: ^3.5
- infection/infection: ^0.26.1
- phpstan/phpstan: ^1.4
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-php-parser: ^1.1
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-strict-rules: ^1.1
- roave/security-advisories: dev-latest
- wickedone/phpcs-reporter: ^1.0
- wickedone/phpunit-printer: ^1.0
- dev-master
- 2.0.0
- 1.0.1
- 1.0.0
- dev-dependabot/composer/phpunit/php-code-coverage-9.2.23
- dev-dependabot/composer/symfony/framework-bundle-5.4.17
- dev-dependabot/composer/phpstan/phpstan-phpunit-1.3.3
- dev-dependabot/composer/phpunit/php-code-coverage-9.2.22
- dev-dependabot/composer/symfony/framework-bundle-5.4.16
- dev-dependabot/composer/nette/php-generator-3.6.9
- dev-dependabot/composer/seld/jsonlint-1.9.0
- dev-dependabot/composer/nette/php-generator-3.6.5
This package is auto-updated.
Last update: 2022-12-29 04:20:16 UTC
README
symfony bundle for the muppet generator
installation
to add this bundle to your dev dependencies use
composer require --dev wickedone/muppet-bundle
configuration
add a wicked_one_muppet.yaml
to your config/dev
directory
wicked_one_muppet: base_dir: '%kernel.project_dir%/src' test_dir: '%kernel.project_dir%/tests/Unit' fragments: - NameSpace - Tests - Unit author: john <john.doe@example.com>
generation
in order to generate a phpunit test for you model / entity you can run the following command
$ php bin/console muppet:generate:test Foo
where Foo.php
would be a model / entity class somewhere in you base_dir
test files
please read the assumptions the muppet library makes regarding your models. the tests, most of the time, won't be perfect but will offer a descent starting point for a test covering your entire model / entity class.