public function Twig_Tests_Node_DoTest::getTests in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/Node/DoTest.php \Twig_Tests_Node_DoTest::getTests()
Overrides Twig_Test_NodeTestCase::getTests
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ DoTest.php, line 22
Class
Code
public function getTests() {
$tests = array();
$expr = new Twig_Node_Expression_Constant('foo', 1);
$node = new Twig_Node_Do($expr, 1);
$tests[] = array(
$node,
"// line 1\n\"foo\";",
);
return $tests;
}