Pinq\Tests\Integration\Parsing\ComplexParserTest::testNestedVariableTraversal PHP Метод

testNestedVariableTraversal() публичный Метод

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