PHP Class spec\PhpSpec\CodeGenerator\GeneratorManagerSpec

Inheritance: extends PhpSpec\ObjectBehavior
Show file Open project: phpspec/phpspec

Public Methods

Method Description
it_chooses_generator_by_priority ( PhpSpec\CodeGenerator\Generator\Generator $generator1, PhpSpec\CodeGenerator\Generator\Generator $generator2, PhpSpec\Locator\Resource $resource )
it_throws_exception_if_no_generator_found ( PhpSpec\Locator\Resource $resource )
it_uses_registered_generators_to_generate_code ( PhpSpec\CodeGenerator\Generator\Generator $generator, PhpSpec\Locator\Resource $resource )

Method Details

it_chooses_generator_by_priority() public method

public it_chooses_generator_by_priority ( PhpSpec\CodeGenerator\Generator\Generator $generator1, PhpSpec\CodeGenerator\Generator\Generator $generator2, PhpSpec\Locator\Resource $resource )
$generator1 PhpSpec\CodeGenerator\Generator\Generator
$generator2 PhpSpec\CodeGenerator\Generator\Generator
$resource PhpSpec\Locator\Resource

it_throws_exception_if_no_generator_found() public method

public it_throws_exception_if_no_generator_found ( PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_uses_registered_generators_to_generate_code() public method

public it_uses_registered_generators_to_generate_code ( PhpSpec\CodeGenerator\Generator\Generator $generator, PhpSpec\Locator\Resource $resource )
$generator PhpSpec\CodeGenerator\Generator\Generator
$resource PhpSpec\Locator\Resource