/**
  * FileGenerator constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $mockTag = new GenericTag();
     $mockTag->setName('mock');
     $author = new AuthorTag('ClassMocker');
     $docBlock = new DocBlockGenerator();
     $docBlock->setShortDescription("Auto generated file by ClassMocker, do not change");
     $docBlock->setTag($author);
     $docBlock->setTag($mockTag);
     $this->setDocBlock($docBlock);
 }
Exemple #2
0
 public function testParamProducesCorrectDocBlockLine()
 {
     $this->tag->setName('var');
     $this->tag->setContent('string');
     $this->assertEquals('@var string', $this->tag->generate());
 }