PhpParser\Builder\MethodTest::testDocComment PHP Метод

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

public testDocComment ( )
    public function testDocComment()
    {
        $node = $this->createMethodBuilder('test')->setDocComment('/** Test */')->getNode();
        $this->assertEquals(new Stmt\ClassMethod('test', array(), array('comments' => array(new Comment\Doc('/** Test */')))), $node);
    }