Example #1
0
 /**
  * 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);
 }
Example #2
0
 public function testConstructorWithOptions()
 {
     $this->tag->setOptions(array('name' => 'var', 'content' => 'string'));
     $tagWithOptionsFromConstructor = new GenericTag('var', 'string');
     $this->assertEquals($this->tag->generate(), $tagWithOptionsFromConstructor->generate());
 }