function JUnitConverterTest::testXmlToRowsEmptyFile
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php \Drupal\Tests\Core\Test\JUnitConverterTest::testXmlToRowsEmptyFile()
- 10 core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php \Drupal\Tests\Core\Test\JUnitConverterTest::testXmlToRowsEmptyFile()
- 11.x core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php \Drupal\Tests\Core\Test\JUnitConverterTest::testXmlToRowsEmptyFile()
@covers ::xmlToRows
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ JUnitConverterTest.php, line 49
Class
- JUnitConverterTest
- Tests <a href="/api/drupal/core%21lib%21Drupal%21Core%21Test%21JUnitConverter.php/class/JUnitConverter/9" title="Converts JUnit XML to Drupal's {simpletest} schema." class="local">Drupal\Core\Test\JUnitConverter</a>.
Namespace
Drupal\Tests\Core\TestCode
public function testXmlToRowsEmptyFile() {
// File system with an empty XML file.
vfsStream::setup('junit_test', NULL, [
'empty.xml' => '',
]);
$this->assertSame([], JUnitConverter::xmlToRows(23, vfsStream::url('junit_test/empty.xml')));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.