public function testLogJUnitCreatesXmlFile()
{
$outputPath = FIXTURES . DS . 'logs' . DS . 'test-output.xml';
$this->options['log-junit'] = $outputPath;
$runner = new Runner($this->options);
ob_start();
$runner->run();
ob_end_clean();
$this->assertTrue(file_exists($outputPath));
$this->assertJunitXmlIsCorrect($outputPath);
if (file_exists($outputPath)) {
unlink($outputPath);
}
}