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

objectPathOnObjectExpressions() public method

    public function objectPathOnObjectExpressions()
    {
        $obj = new Fixtures\TestObject();
        $obj->setProperty('Test');
        $nested = new Fixtures\TestObject();
        $nested->setProperty($obj);
        // Wrap an object inside a context
        $c = new Context(['obj' => $obj, 'nested' => $nested]);
        return [['obj.property', $c, 'Test'], ['nested.property.property', $c, 'Test'], ['obj.callMe("Foo")', $c, 'Hello, Foo!']];
    }