You are here

public function JUnitConverterTest::testXmlToRowsEmptyFile in Drupal 8

Same name and namespace in other branches
  1. 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

JUnitConverterTest
Tests Drupal\Core\Test\JUnitConverter.

Namespace

Drupal\Tests\Core\Test

Code

public function testXmlToRowsEmptyFile() {

  // File system with an empty XML file.
  vfsStream::setup('junit_test', NULL, [
    'empty.xml' => '',
  ]);
  $this
    ->assertArrayEquals([], JUnitConverter::xmlToRows(23, vfsStream::url('junit_test/empty.xml')));
}