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