public function Twig_Tests_Node_BlockTest::getTests in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/Node/BlockTest.php \Twig_Tests_Node_BlockTest::getTests()
Overrides Twig_Test_NodeTestCase::getTests
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ BlockTest.php, line 23
Class
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
,
),
);
}