ParaTest\Runners\PHPUnit\RunnerIntegrationTest::assertJunitXmlIsCorrect PHP Method

assertJunitXmlIsCorrect() public method

public assertJunitXmlIsCorrect ( $path )
    public function assertJunitXmlIsCorrect($path)
    {
        $doc = simplexml_load_file($path);
        $suites = $doc->xpath('//testsuite');
        $cases = $doc->xpath('//testcase');
        $failures = $doc->xpath('//failure');
        $errors = $doc->xpath('//error');
        // these numbers represent the tests in fixtures/failing-tests
        // so will need to be updated when tests are added or removed
        $this->assertCount(6, $suites);
        $this->assertCount(16, $cases);
        $this->assertCount(6, $failures);
        $this->assertCount(1, $errors);
    }