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