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