public function JUnitConverterTest::testXmlToRowsEmptyFile in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Test/JUnitConverterTest.php \Drupal\Tests\Core\Test\JUnitConverterTest::testXmlToRowsEmptyFile()
- 9 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
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')));
}