PhpParser\NodeVisitor\NameResolverTest::testNoResolveSpecialName PHP 메소드

testNoResolveSpecialName() 공개 메소드

    public function testNoResolveSpecialName() {
        $stmts = array(new Node\Expr\New_(new Name('self')));

        $traverser = new PhpParser\NodeTraverser;
        $traverser->addVisitor(new NameResolver);

        $this->assertEquals($stmts, $traverser->traverse($stmts));
    }