public function Twig_Tests_Node_BlockTest::getTests

Overrides Twig_Test_NodeTestCase::getTests

File

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

Class

Twig_Tests_Node_BlockTest

Code

public function getTests() {
  $body = new Twig_Node_Text('foo', 1);
  $node = new Twig_Node_Block('foo', $body, 1);
  return array(
    array(
      $node,
      <<<EOF
// line 1
public function block_foo(\$context, array \$blocks = array())
{
    echo "foo";
}
EOF
,
    ),
  );
}