PhpMigration\Changes\v7dot0\ParseDifferenceTest::testPrecedence PHP Метод

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

Changes to the handling of indirect variables, properties, and methods
См. также: http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.variable-handling.indirect
public testPrecedence ( )
    public function testPrecedence()
    {
        $this->assertHasSpot('$$foo[\'bar\'][\'baz\'];');
        $this->assertHasSpot('$foo->$bar[\'baz\'];');
        $this->assertHasSpot('$foo->$bar[\'baz\']();');
        $this->assertHasSpot('Foo::$bar[\'baz\']();');
        $this->assertNotSpot('$foo[\'bar\'];');
    }
ParseDifferenceTest