spec\PhpSpec\Formatter\DotFormatterSpec::it_outputs_the_progress_every_50_examples PHP Метод

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

public it_outputs_the_progress_every_50_examples ( ExampleEvent $exampleEvent, SuiteEvent $suiteEvent, ConsoleIO $io, PhpSpec\Listener\StatisticsCollector $stats )
$exampleEvent PhpSpec\Event\ExampleEvent
$suiteEvent PhpSpec\Event\SuiteEvent
$io PhpSpec\Console\ConsoleIO
$stats PhpSpec\Listener\StatisticsCollector
    function it_outputs_the_progress_every_50_examples(ExampleEvent $exampleEvent, SuiteEvent $suiteEvent, ConsoleIO $io, StatisticsCollector $stats)
    {
        $exampleEvent->getResult()->willReturn(ExampleEvent::PASSED);
        $suiteEvent->getSuite()->willReturn(range(1, 100));
        $stats->getEventsCount()->willReturn(50);
        $this->beforeSuite($suiteEvent);
        $this->afterExample($exampleEvent);
        $io->write('  50 / 100')->shouldHaveBeenCalled();
    }