spec\PhpSpec\Formatter\TapFormatterSpec::it_outputs_skip_progress_on_afterexample_event PHP Метод

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

public it_outputs_skip_progress_on_afterexample_event ( SpecificationEvent $specEvent, ExampleEvent $exampleEvent, ExampleNode $example, SpecificationNode $spec, ConsoleIO $io, PhpSpec\Listener\StatisticsCollector $stats )
$specEvent PhpSpec\Event\SpecificationEvent
$exampleEvent PhpSpec\Event\ExampleEvent
$example PhpSpec\Loader\Node\ExampleNode
$spec PhpSpec\Loader\Node\SpecificationNode
$io PhpSpec\Console\ConsoleIO
$stats PhpSpec\Listener\StatisticsCollector
    function it_outputs_skip_progress_on_afterexample_event(SpecificationEvent $specEvent, ExampleEvent $exampleEvent, ExampleNode $example, SpecificationNode $spec, ConsoleIO $io, StatisticsCollector $stats)
    {
        $specEvent->getSpecification()->willReturn($spec);
        $exampleEvent->getExample()->willReturn($example);
        $example->getTitle()->willReturn('foobar');
        $exampleEvent->getResult()->willReturn(ExampleEvent::SKIPPED);
        $exampleEvent->getException()->willReturn(new \Exception('no reason'));
        $spec->getTitle()->willReturn('spec1');
        $this->beforeSpecification($specEvent);
        $this->afterExample($exampleEvent);
        $expected = 'ok 1 - spec1: foobar # SKIP no reason';
        $io->writeln($expected)->shouldHaveBeenCalled();
    }