XmlUtilityTest.php in Feeds extensible parsers 8
Namespace
Drupal\Tests\feeds_ex\Unit\UtilityFile
tests/src/Unit/Utility/XmlUtilityTest.phpView source
<?php
namespace Drupal\Tests\feeds_ex\Unit\Utility;
use Drupal\Tests\feeds_ex\Unit\UnitTestBase;
use Drupal\feeds_ex\Utility\XmlUtility;
/**
* @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);
}
}
Classes
Name | Description |
---|---|
XmlUtilityTest | @coversDefaultClass \Drupal\feeds_ex\Utility\XmlUtility @group feeds_ex |