Pinq\Tests\Integration\Parsing\ComplexParserTest::testNestedVariableTraversal PHP Méthode

testNestedVariableTraversal() public méthode

    public function testNestedVariableTraversal()
    {
        $function = function () {
            $i->field->method()['index'];
        };
        $this->assertParsedAs($function, [O\Expression::index(O\Expression::methodCall(O\Expression::field(self::variable('i'), O\Expression::value('field')), O\Expression::value('method')), O\Expression::value('index'))]);
    }