You are here

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\Utility

Code

public function testDecodeNamedHtmlEntities() {
  $xml = '<root>&Atilde;&amp;&lt;&gt;</root>';
  $utility = new XmlUtility();
  $xml = $utility
    ->decodeNamedHtmlEntities($xml);
  $this
    ->assertSame('<root>Ã&amp;&lt;&gt;</root>', $xml);
}