public function Twig_Test_EscapingTest::testHtmlEscapingConvertsSpecialChars

File

drupal/core/vendor/twig/twig/test/Twig/Tests/escapingTest.php, line 153

Class

Twig_Test_EscapingTest
This class is adapted from code coming from Zend Framework.

Code

public function testHtmlEscapingConvertsSpecialChars() {
  foreach ($this->htmlSpecialChars as $key => $value) {
    $this
      ->assertEquals($value, twig_escape_filter($this->env, $key, 'html'), 'Failed to escape: ' . $key);
  }
}