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