getSuite() 공개 메소드

public getSuite ( ) : PhpSpec\Loader\Suite
리턴 PhpSpec\Loader\Suite
 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);
 }
예제 #2
0
 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());
 }
예제 #4
0
 /**
  *
  * @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)));
 }
예제 #6
0
 public function beforeSuite(SuiteEvent $event)
 {
     $this->enabled = $this->maxSpecs >= count($event->getSuite()->getSpecifications());
 }