public function XmlUtilityTest::testDecodeNamedHtmlEntities in Feeds extensible parsers 8
@covers ::decodeNamedHtmlEntities
File
- tests/
src/ Unit/ Utility/ XmlUtilityTest.php, line 17
Class
- XmlUtilityTest
- @coversDefaultClass \Drupal\feeds_ex\Utility\XmlUtility @group feeds_ex
Namespace
Drupal\Tests\feeds_ex\Unit\UtilityCode
public function testDecodeNamedHtmlEntities() {
$xml = '<root>Ã&<></root>';
$utility = new XmlUtility();
$xml = $utility
->decodeNamedHtmlEntities($xml);
$this
->assertSame('<root>Ã&<></root>', $xml);
}