PHP Класс spec\PhpSpec\Listener\CollaboratorMethodNotFoundListenerSpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
it_does_not_prompt_if_it_cannot_generate_the_resource ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resources, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
it_does_not_prompt_when_code_generation_is_disabled ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
it_does_not_prompt_when_collaborator_is_not_an_interface ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
it_does_not_prompt_when_no_exception_is_thrown ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent )
it_does_not_prompt_when_wrong_exception_is_thrown ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent )
it_generates_the_method_signature_when_user_says_yes_at_prompt ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception, PhpSpec\Locator\Resource $resource, GeneratorManager $generator )
it_is_an_event_subscriber ( )
it_listens_to_afterexample_events ( )
it_marks_the_suite_as_being_worth_rerunning_when_generation_happens ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
it_prompts_and_warns_when_one_method_name_is_correct_but_other_reserved ( ExampleEvent $event, SuiteEvent $suiteEvent, ConsoleIO $io, PhpSpec\Util\NameChecker $nameChecker )
it_prompts_the_user_when_a_prophecy_method_exception_is_thrown ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
it_warns_if_a_method_name_is_wrong ( ExampleEvent $event, SuiteEvent $suiteEvent, ConsoleIO $io, PhpSpec\Util\NameChecker $nameChecker )
let ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resources, ExampleEvent $event, Prophecy\Exception\Doubler\MethodNotFoundException $exception, PhpSpec\Locator\Resource $resource, GeneratorManager $generator, PhpSpec\Util\NameChecker $nameChecker )

Приватные методы

Метод Описание
callAfterExample ( $event, $nameChecker, $method, $isNameValid = true )

Описание методов

it_does_not_prompt_if_it_cannot_generate_the_resource() публичный Метод

public it_does_not_prompt_if_it_cannot_generate_the_resource ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resources, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
$io PhpSpec\Console\ConsoleIO
$resources PhpSpec\Locator\ResourceManager
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException

it_does_not_prompt_when_code_generation_is_disabled() публичный Метод

public it_does_not_prompt_when_code_generation_is_disabled ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException

it_does_not_prompt_when_collaborator_is_not_an_interface() публичный Метод

public it_does_not_prompt_when_collaborator_is_not_an_interface ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException

it_does_not_prompt_when_no_exception_is_thrown() публичный Метод

public it_does_not_prompt_when_no_exception_is_thrown ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent

it_does_not_prompt_when_wrong_exception_is_thrown() публичный Метод

public it_does_not_prompt_when_wrong_exception_is_thrown ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent

it_generates_the_method_signature_when_user_says_yes_at_prompt() публичный Метод

public it_generates_the_method_signature_when_user_says_yes_at_prompt ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception, PhpSpec\Locator\Resource $resource, GeneratorManager $generator )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException
$resource PhpSpec\Locator\Resource
$generator PhpSpec\CodeGenerator\GeneratorManager

it_is_an_event_subscriber() публичный Метод

it_listens_to_afterexample_events() публичный Метод

it_marks_the_suite_as_being_worth_rerunning_when_generation_happens() публичный Метод

public it_marks_the_suite_as_being_worth_rerunning_when_generation_happens ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException

it_prompts_and_warns_when_one_method_name_is_correct_but_other_reserved() публичный Метод

public it_prompts_and_warns_when_one_method_name_is_correct_but_other_reserved ( ExampleEvent $event, SuiteEvent $suiteEvent, ConsoleIO $io, PhpSpec\Util\NameChecker $nameChecker )
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$io PhpSpec\Console\ConsoleIO
$nameChecker PhpSpec\Util\NameChecker

it_prompts_the_user_when_a_prophecy_method_exception_is_thrown() публичный Метод

public it_prompts_the_user_when_a_prophecy_method_exception_is_thrown ( ConsoleIO $io, ExampleEvent $event, SuiteEvent $suiteEvent, Prophecy\Exception\Doubler\MethodNotFoundException $exception )
$io PhpSpec\Console\ConsoleIO
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException

it_warns_if_a_method_name_is_wrong() публичный Метод

public it_warns_if_a_method_name_is_wrong ( ExampleEvent $event, SuiteEvent $suiteEvent, ConsoleIO $io, PhpSpec\Util\NameChecker $nameChecker )
$event PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$io PhpSpec\Console\ConsoleIO
$nameChecker PhpSpec\Util\NameChecker

let() публичный Метод

public let ( ConsoleIO $io, PhpSpec\Locator\ResourceManager $resources, ExampleEvent $event, Prophecy\Exception\Doubler\MethodNotFoundException $exception, PhpSpec\Locator\Resource $resource, GeneratorManager $generator, PhpSpec\Util\NameChecker $nameChecker )
$io PhpSpec\Console\ConsoleIO
$resources PhpSpec\Locator\ResourceManager
$event PhpSpec\Event\ExampleEvent
$exception Prophecy\Exception\Doubler\MethodNotFoundException
$resource PhpSpec\Locator\Resource
$generator PhpSpec\CodeGenerator\GeneratorManager
$nameChecker PhpSpec\Util\NameChecker