public function Twig_Test_EscapingTest::testHtmlAttributeEscapingConvertsSpecialChars in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/escapingTest.php \Twig_Test_EscapingTest::testHtmlAttributeEscapingConvertsSpecialChars()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ escapingTest.php, line 159
Class
- Twig_Test_EscapingTest
- This class is adapted from code coming from Zend Framework.
Code
public function testHtmlAttributeEscapingConvertsSpecialChars() {
foreach ($this->htmlAttrSpecialChars as $key => $value) {
$this
->assertEquals($value, twig_escape_filter($this->env, $key, 'html_attr'), 'Failed to escape: ' . $key);
}
}