spec\PhpSpec\Formatter\JUnitFormatterSpec::it_stores_a_testcase_node_after_passed_example_run PHP Method

it_stores_a_testcase_node_after_passed_example_run() public method

public it_stores_a_testcase_node_after_passed_example_run ( ExampleEvent $event, SpecificationNode $specification, ReflectionClass $refClass )
$event PhpSpec\Event\ExampleEvent
$specification PhpSpec\Loader\Node\SpecificationNode
$refClass ReflectionClass
    function it_stores_a_testcase_node_after_passed_example_run(ExampleEvent $event, SpecificationNode $specification, \ReflectionClass $refClass)
    {
        $event->getResult()->willReturn(ExampleEvent::PASSED);
        $event->getTitle()->willReturn('example title');
        $event->getTime()->willReturn(1337);
        $event->getSpecification()->willReturn($specification);
        $specification->getClassReflection()->willReturn($refClass);
        $refClass->getName()->willReturn('Acme\\Foo\\Bar');
        $this->afterExample($event);
        $this->getTestCaseNodes()->shouldReturn(array('<testcase name="example title" time="1337.000000" classname="Acme\\Foo\\Bar" status="passed" />'));
    }