public function SimpleXmlTest::testReadNonStandardXmlWhitespace in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 tests/src/Kernel/Plugin/migrate_plus/data_parser/SimpleXmlTest.php \Drupal\Tests\migrate_plus\Kernel\Plugin\migrate_plus\data_parser\SimpleXmlTest::testReadNonStandardXmlWhitespace()
Test reading non standard conforming XML.
XML file with lots of different white spaces before the starting tag.
File
- tests/
src/ Kernel/ Plugin/ migrate_plus/ data_parser/ SimpleXmlTest.php, line 104
Class
- SimpleXmlTest
- Test of the data_parser SimpleXml migrate_plus plugin.
Namespace
Drupal\Tests\migrate_plus\Kernel\Plugin\migrate_plus\data_parserCode
public function testReadNonStandardXmlWhitespace() {
$url = $this->path . '/tests/data/simple_xml_invalid_multi_whitespace.xml';
$this->configuration['urls'][0] = $url;
$parser = $this->pluginManager
->createInstance('simple_xml', $this->configuration);
$this
->assertResults($this->expected, $parser);
}