You are here

public function TokenizerTest::testCDATASection in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php \Masterminds\HTML5\Tests\Parser\TokenizerTest::testCDATASection()

File

vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php, line 224

Class

TokenizerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testCDATASection() {
  $good = array(
    '<![CDATA[ This is a test. ]]>' => ' This is a test. ',
    '<![CDATA[CDATA]]>' => 'CDATA',
    '<![CDATA[ ]] > ]]>' => ' ]] > ',
    '<![CDATA[ ]]>' => ' ',
  );
  $this
    ->isAllGood('cdata', 2, $good);
}