Download the PHP package michaeldoehler/phpunit-generator without Composer
On this page you can find all versions of the php package michaeldoehler/phpunit-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phpunit-generator
Getting started
Installation
Checkout repository & run composer install to install dependencies
Configuration
Create a config.php like this:
Cli commands:
Components
Base
General configuration like base class, source and target directory.
Indexer
Creates a generatable index from e.g. Filesystem and provides an iterator with an instance of Testable class of every file!
Generator
Chain of generators, which can be used to generate a test class or test method.
Their are 2 strategies to generate, first class based, second method based.
The Generator provider provides the possibility to generate a whole class or just only a test method:
-
PhpUnitTestGenerator\Generator\Provider\Definition\ObjectInterface
- PhpUnitTestGenerator\Generator\Provider\Definition\MethodInterface
Architecture
The indexer builds an index of testable php classes. The indexer provides this as an indexed resultset.
The testable builder iterates over every found class and creates a testable object from the given class.
The generator generates each result of the given testable resultset and tries to generates a test class based on the given object and/or method strategies.
All versions of phpunit-generator with dependencies
fzaninotto/faker Version ~1.4
symfony/console Version ~2.4
phpunit/php-text-template Version ~1.2
phpunit/phpunit Version ~4.6
phpdocumentor/reflection-docblock Version ~2.0