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