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

it_stores_a_testcase_node_after_skipped_example_run() public method

public it_stores_a_testcase_node_after_skipped_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_skipped_example_run(ExampleEvent $event, SpecificationNode $specification, \ReflectionClass $refClass)
    {
        $event->getResult()->willReturn(ExampleEvent::SKIPPED);
        $event->getTitle()->willReturn('example title');
        $event->getTime()->willReturn(1337);
        $event->getException()->willReturn(new SkippingException('zog zog'));
        $event->getSpecification()->willReturn($specification);
        $specification->getClassReflection()->willReturn($refClass);
        $refClass->getName()->willReturn('Acme\\Foo\\Bar');
        $this->afterExample($event);
        // skipped tag is escaped because a skipped tag is also registered in the console formatter
        $this->getTestCaseNodes()->shouldReturn(array('<testcase name="example title" time="1337.000000" classname="Acme\\Foo\\Bar" status="skipped">' . "\n" . '\\<skipped><![CDATA[ skipped: zog zog ]]>\\</skipped>' . "\n" . '</testcase>'));
    }