function it_records_how_many_specs_are_in_the_suite(SuiteEvent $suiteEvent, Suite $suite, SpecificationNode $spec) { $suiteEvent->getSuite()->willReturn($suite); $suite->getSpecifications()->willReturn(array($spec)); $this->beforeSuite($suiteEvent); $this->getTotalSpecsCount()->shouldReturn(1); }
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(); }
public function beforeSuite(SuiteEvent $suiteEvent) { $this->totalSpecsCount = count($suiteEvent->getSuite()->getSpecifications()); }
/** * * @param SuiteEvent $event */ public function beforeSuite(SuiteEvent $event) { $this->examplesCount = count($event->getSuite()); }
/** * @param SuiteEvent $event */ public function beforeSuite(SuiteEvent $event) { $this->examplesCount = count($event->getSuite()); $this->getIO()->writeln($this->teamCityMessage("testCount", array("count" => $this->examplesCount))); }
public function beforeSuite(SuiteEvent $event) { $this->enabled = $this->maxSpecs >= count($event->getSuite()->getSpecifications()); }