You are here

public function Html5Test::testEntities in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/Html5Test.php \Masterminds\HTML5\Tests\Html5Test::testEntities()

File

vendor/masterminds/html5/test/HTML5/Html5Test.php, line 372

Class

Html5Test

Namespace

Masterminds\HTML5\Tests

Code

public function testEntities() {
  $res = $this
    ->cycle('<a>Apples &amp; bananas.</a>');
  $this
    ->assertRegExp('|Apples &amp; bananas.|', $res);
  $res = $this
    ->cycleFragment('<a>Apples &amp; bananas.</a>');
  $this
    ->assertRegExp('|Apples &amp; bananas.|', $res);
  $res = $this
    ->cycleFragment('<p>R&D</p>');
  $this
    ->assertRegExp('|R&amp;D|', $res);
}