PhpSpec\Formatter\JUnitFormatter::afterSpecification PHP Метод

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

public afterSpecification ( SpecificationEvent $event )
$event PhpSpec\Event\SpecificationEvent
    public function afterSpecification(SpecificationEvent $event)
    {
        $this->testSuiteNodes[] = sprintf('<testsuite name="%s" time="%F" tests="%s" failures="%s" errors="%s" skipped="%s">' . "\n" . '%s' . "\n" . '</testsuite>', $event->getTitle(), $event->getTime(), count($this->testCaseNodes), $this->exampleStatusCounts[ExampleEvent::FAILED], $this->exampleStatusCounts[ExampleEvent::BROKEN], $this->exampleStatusCounts[ExampleEvent::PENDING] + $this->exampleStatusCounts[ExampleEvent::SKIPPED], implode("\n", $this->testCaseNodes));
        $this->initTestCaseNodes();
    }