/** * Set the doc block comment * * @param mixed $comment * * @return void */ public function addAnnotation($name, $desc = null) { $this->docBlock->addAnnotation($name, $desc); }
/** @test */ public function itShouldInlineBlocks() { $expected = '/** @test */'; $doc = new DocBlock(); $doc->addAnnotation('test'); $doc->setInline(true); $this->assertSame($expected, $doc->generate()); }