public function OutputRulesTest::testEnc in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php \Masterminds\HTML5\Tests\Serializer\OutputRulesTest::testEnc()
Test basic encoding of text. @dataProvider getEncData
File
- vendor/
masterminds/ html5/ test/ HTML5/ Serializer/ OutputRulesTest.php, line 429
Class
Namespace
Masterminds\HTML5\Tests\SerializerCode
public function testEnc($isAttribute, $test, $expected, $expectedEncoded) {
list($o, $s) = $this
->getOutputRules();
$m = $this
->getProtectedMethod('enc');
$this
->assertEquals($expected, $m
->invoke($o, $test, $isAttribute));
list($o, $s) = $this
->getOutputRules(array(
'encode_entities' => true,
));
$m = $this
->getProtectedMethod('enc');
$this
->assertEquals($expectedEncoded, $m
->invoke($o, $test, $isAttribute));
}