本文整理汇总了PHP中PhpSpec\Event\SuiteEvent::getSuite方法的典型用法代码示例。如果您正苦于以下问题:PHP SuiteEvent::getSuite方法的具体用法?PHP SuiteEvent::getSuite怎么用?PHP SuiteEvent::getSuite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhpSpec\Event\SuiteEvent
的用法示例。
在下文中一共展示了SuiteEvent::getSuite方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
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:
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();
}
示例3: beforeSuite
public function beforeSuite(SuiteEvent $suiteEvent)
{
$this->totalSpecsCount = count($suiteEvent->getSuite()->getSpecifications());
}
示例4: beforeSuite
/**
*
* @param SuiteEvent $event
*/
public function beforeSuite(SuiteEvent $event)
{
$this->examplesCount = count($event->getSuite());
}
示例5: beforeSuite
/**
* @param SuiteEvent $event
*/
public function beforeSuite(SuiteEvent $event)
{
$this->examplesCount = count($event->getSuite());
$this->getIO()->writeln($this->teamCityMessage("testCount", array("count" => $this->examplesCount)));
}
示例6: beforeSuite
public function beforeSuite(SuiteEvent $event)
{
$this->enabled = $this->maxSpecs >= count($event->getSuite()->getSpecifications());
}