'test_id' => 23,
'test_class' => 'Drupal\Tests\simpletest\Unit\TestDiscoveryTest',
'status' => 'pass',
'message' => '',
'message_group' => 'Other',
'function' => 'Drupal\Tests\simpletest\Unit\TestDiscoveryTest->testGetTestClasses()',
'line' => 108,
'file' => '/Users/paul/projects/drupal/core/modules/simpletest/tests/src/Unit/TestDiscoveryTest.php',
],
];
$this->
assertEquals($simpletest, JUnitConverter::
xmlElementToRows(23,
new \
SimpleXMLElement($junit)));
} /**
* @covers ::convertTestCaseToSimpletestRow
*/
public function testConvertTestCaseToSimpletestRow() { $junit = <<<EOD
<testcase name="testGetTestClasses" class="Drupal\Tests\simpletest\Unit\TestDiscoveryTest" classname="Drupal.Tests.simpletest.Unit.TestDiscoveryTest" file="/Users/paul/projects/drupal/core/modules/simpletest/tests/src/Unit/TestDiscoveryTest.php" line="108" assertions="2" time="0.100787"/>
EOD;
$simpletest =
[ 'test_id' => 23,