spec\PhpSpec\Listener\MethodReturnedNullListenerSpec::it_does_not_prompt_when_multiple_contradictory_examples_are_found PHP 메소드

it_does_not_prompt_when_multiple_contradictory_examples_are_found() 공개 메소드

public it_does_not_prompt_when_multiple_contradictory_examples_are_found ( MethodCallEvent $methodCallEvent, ExampleEvent $exampleEvent, PhpSpec\Exception\Example\NotEqualException $notEqualException, ConsoleIO $io, ExampleEvent $exampleEvent2, PhpSpec\Exception\Example\NotEqualException $notEqualException2, SuiteEvent $event )
$methodCallEvent PhpSpec\Event\MethodCallEvent
$exampleEvent PhpSpec\Event\ExampleEvent
$notEqualException PhpSpec\Exception\Example\NotEqualException
$io PhpSpec\Console\ConsoleIO
$exampleEvent2 PhpSpec\Event\ExampleEvent
$notEqualException2 PhpSpec\Exception\Example\NotEqualException
$event PhpSpec\Event\SuiteEvent
    function it_does_not_prompt_when_multiple_contradictory_examples_are_found(MethodCallEvent $methodCallEvent, ExampleEvent $exampleEvent, NotEqualException $notEqualException, ConsoleIO $io, ExampleEvent $exampleEvent2, NotEqualException $notEqualException2, SuiteEvent $event)
    {
        $exampleEvent->getException()->willReturn($notEqualException);
        $exampleEvent2->getException()->willReturn($notEqualException2);
        $notEqualException->getActual()->willReturn(null);
        $notEqualException2->getActual()->willReturn(null);
        $notEqualException->getExpected()->willReturn('foo');
        $notEqualException2->getExpected()->willReturn('bar');
        $this->afterMethodCall($methodCallEvent);
        $this->afterExample($exampleEvent);
        $this->afterMethodCall($methodCallEvent);
        $this->afterExample($exampleEvent2);
        $this->afterSuite($event);
        $io->askConfirmation(Argument::any())->shouldNotHaveBeenCalled();
    }