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>&Atilde;&amp;&lt;&gt;</root>';
    $utility = new XmlUtility();
    $xml = $utility->decodeNamedHtmlEntities($xml);
    $this->assertSame('<root>Ã&amp;&lt;&gt;</root>', $xml);
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc