You are here

public function Html5Test::testCDATA 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::testCDATA()

File

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

Class

Html5Test

Namespace

Masterminds\HTML5\Tests

Code

public function testCDATA() {
  $res = $this
    ->cycle('a<![CDATA[ This <is> a test. ]]>b');
  $this
    ->assertRegExp('|<!\\[CDATA\\[ This <is> a test\\. \\]\\]>|', $res);
  $res = $this
    ->cycleFragment('a<![CDATA[ This <is> a test. ]]>b');
  $this
    ->assertRegExp('|<!\\[CDATA\\[ This <is> a test\\. \\]\\]>|', $res);
}