You are here

public function Twig_Tests_Node_Expression_ArrayTest::getTests in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

Twig_Tests_Node_Expression_ArrayTest

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")',
    ),
  );
}