Neos\Eel\Tests\Unit\AbstractEvaluatorTest::arrayLiteralExpressions PHP Method

arrayLiteralExpressions() public method

public arrayLiteralExpressions ( ) : array
return array
    public function arrayLiteralExpressions()
    {
        $c = new Context(['test' => function ($string) {
            return 'test|' . $string . '|';
        }, 'foo' => ['baz' => 'Hello'], 'bar' => 'baz']);
        return [['[]', $c, []], ['[1, 2, 3]', $c, [1, 2, 3]], ['[[1, 2], 3, 4]', $c, [[1, 2], 3, 4]], ['[[foo[bar], 2], test("a"), 4]', $c, [['Hello', 2], 'test|a|', 4]]];
    }