@Test public void shouldParseTestSuitesWithoutTime() { final TestSuites suites = parser.parse(new File("src/test/resources/" + PhpTestUtils.PHPUNIT_REPORT_DIR + "phpunit-junit-report-no-time.xml")); assertThat(suites).isNotNull(); List<TestFileReport> reports = suites.arrangeSuitesIntoTestFileReports(); assertThat(reports).hasSize(2); assertThat(reports.get(0).testDurationMilliseconds()).isEqualTo(0); assertThat(reports.get(1).testDurationMilliseconds()).isEqualTo(0); }
public TestSuites parse(File report) { try { return processRoot(report, inputFactory()); } catch (XMLStreamException e) { throw new IllegalStateException("Can't read PhpUnit report : " + report.getAbsolutePath(), e); } }
JUnitLogParserForPhpUnit { public TestSuites parse(File report) { try { return processRoot(report, inputFactory()); } catch (XMLStreamException e) { throw new IllegalStateException("Can't read PhpUnit report : " + report.getAbsolutePath(), e); } } }
JUnitLogParserForPhpUnit { public TestSuites parse(File report) { try { return processRoot(report, inputFactory()); } catch (XMLStreamException e) { throw new IllegalStateException("Can't read PhpUnit report : " + report.getAbsolutePath(), e); } }  }
JUnitLogParserForPhpUnit { public TestSuites parse(File report) { try { return processRoot(report, inputFactory()); } catch (XMLStreamException e) { throw new IllegalStateException("Can't read PhpUnit report : " + report.getAbsolutePath(), e); } }  TestSuites parse(File report); static SMInputFactory inputFactory(); }
JUnitLogParserForPhpUnit { public TestSuites parse(File report) { try { return processRoot(report, inputFactory()); } catch (XMLStreamException e) { throw new IllegalStateException("Can't read PhpUnit report : " + report.getAbsolutePath(), e); } }  TestSuites parse(File report); static SMInputFactory inputFactory();  }