public function Twig_Tests_Node_AutoEscapeTest::getTests

Overrides Twig_Test_NodeTestCase::getTests

File

drupal/core/vendor/twig/twig/test/Twig/Tests/Node/AutoEscapeTest.php, line 35

Class

Twig_Tests_Node_AutoEscapeTest

Code

public function getTests() {
  $body = new Twig_Node(array(
    new Twig_Node_Text('foo', 1),
  ));
  $node = new Twig_Node_AutoEscape(true, $body, 1);
  return array(
    array(
      $node,
      "// line 1\necho \"foo\";",
    ),
  );
}