PHP Class spec\PhpSpec\CodeGenerator\Generator\NewFileNotifyingGeneratorSpec

Inheritance: extends PhpSpec\ObjectBehavior
Exibir arquivo Open project: phpspec/phpspec

Public Methods

Method Description
it_is_a_code_generator ( )
it_should_check_that_the_file_was_created ( $generator, $filesystem, PhpSpec\Locator\Resource $resource )
it_should_dispatch_an_event_when_a_file_is_created ( $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
it_should_dispatch_an_event_with_the_spec_path_when_a_spec_is_created ( $generator, $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
it_should_not_dispatch_an_event_if_the_file_already_existed ( $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
it_should_not_dispatch_an_event_if_the_file_was_not_created ( $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
it_should_proxy_the_generate_call_to_the_decorated_object ( $generator, PhpSpec\Locator\Resource $resource )
it_should_proxy_the_priority_call_to_the_decorated_object ( $generator )
it_should_proxy_the_support_call_to_the_decorated_object ( $generator, PhpSpec\Locator\Resource $resource )
let ( PhpSpec\CodeGenerator\Generator\Generator $generator, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Filesystem $filesystem )

Method Details

it_is_a_code_generator() public method

it_should_check_that_the_file_was_created() public method

public it_should_check_that_the_file_was_created ( $generator, $filesystem, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_should_dispatch_an_event_when_a_file_is_created() public method

public it_should_dispatch_an_event_when_a_file_is_created ( $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_should_dispatch_an_event_with_the_spec_path_when_a_spec_is_created() public method

public it_should_dispatch_an_event_with_the_spec_path_when_a_spec_is_created ( $generator, $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_should_not_dispatch_an_event_if_the_file_already_existed() public method

public it_should_not_dispatch_an_event_if_the_file_already_existed ( $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_should_not_dispatch_an_event_if_the_file_was_not_created() public method

public it_should_not_dispatch_an_event_if_the_file_was_not_created ( $dispatcher, $filesystem, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_should_proxy_the_generate_call_to_the_decorated_object() public method

public it_should_proxy_the_generate_call_to_the_decorated_object ( $generator, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

it_should_proxy_the_priority_call_to_the_decorated_object() public method

it_should_proxy_the_support_call_to_the_decorated_object() public method

public it_should_proxy_the_support_call_to_the_decorated_object ( $generator, PhpSpec\Locator\Resource $resource )
$resource PhpSpec\Locator\Resource

let() public method

public let ( PhpSpec\CodeGenerator\Generator\Generator $generator, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Filesystem $filesystem )
$generator PhpSpec\CodeGenerator\Generator\Generator
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$filesystem PhpSpec\Util\Filesystem