You are here

public function OutputRulesTest::getEncData in Zircon Profile 8

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

File

vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php, line 376

Class

OutputRulesTest

Namespace

Masterminds\HTML5\Tests\Serializer

Code

public function getEncData() {
  return array(
    array(
      false,
      '&\'<>"',
      '&amp;\'&lt;&gt;"',
      '&amp;&apos;&lt;&gt;&quot;',
    ),
    array(
      false,
      'This + is. a < test',
      'This + is. a &lt; test',
      'This &plus; is&period; a &lt; test',
    ),
    array(
      false,
      '.+#',
      '.+#',
      '&period;&plus;&num;',
    ),
    array(
      true,
      '.+#\'',
      '.+#\'',
      '&period;&plus;&num;&apos;',
    ),
    array(
      true,
      '&".<',
      '&amp;&quot;.<',
      '&amp;&quot;&period;&lt;',
    ),
    array(
      true,
      '&\'<>"',
      '&amp;\'<>&quot;',
      '&amp;&apos;&lt;&gt;&quot;',
    ),
    array(
      true,
      " \"'",
      '&nbsp;&quot;\'',
      '&nbsp;&quot;&apos;',
    ),
  );
}