feeds_ex-8.x-1.0-alpha4/tests/src/Unit/Utility/XmlUtilityTest.php
tests/src/Unit/Utility/XmlUtilityTest.php
<?php
namespace Drupal\Tests\feeds_ex\Unit\Utility;
use Drupal\feeds_ex\Utility\XmlUtility;
use Drupal\Tests\feeds_ex\Unit\UnitTestBase;
/**
* @coversDefaultClass \Drupal\feeds_ex\Utility\XmlUtility
* @group feeds_ex
*/
class XmlUtilityTest extends UnitTestBase {
/**
* @covers ::decodeNamedHtmlEntities
*/
public function testDecodeNamedHtmlEntities() {
$xml = '<root>Ã&<></root>';
$utility = new XmlUtility();
$xml = $utility->decodeNamedHtmlEntities($xml);
$this->assertSame('<root>Ã&<></root>', $xml);
}
}
