public function Twig_Tests_Node_Expression_ArrayTest::getTests in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/Node/Expression/ArrayTest.php \Twig_Tests_Node_Expression_ArrayTest::getTests()
Overrides Twig_Test_NodeTestCase::getTests
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ Expression/ ArrayTest.php, line 22
Class
Code
public function getTests() {
$elements = array(
new Twig_Node_Expression_Constant('foo', 1),
new Twig_Node_Expression_Constant('bar', 1),
new Twig_Node_Expression_Constant('bar', 1),
new Twig_Node_Expression_Constant('foo', 1),
);
$node = new Twig_Node_Expression_Array($elements, 1);
return array(
array(
$node,
'array("foo" => "bar", "bar" => "foo")',
),
);
}