PhpParser\Builder\FunctionTest::testDocComment PHP Method

testDocComment() public method

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