Esempio n. 1
0
 public function testTrait()
 {
     $trait = new PhpTrait();
     $trait->setDescription('my trait')->setLongDescription('this is my very long description')->setProperty($this->getProperty())->setMethod($this->getMethod());
     $trait->generateDocblock();
     $this->assertFalse($trait->getDocblock()->isEmpty());
     $this->assertNotNull($trait->getProperty(self::PROP)->getDocblock());
     $this->assertNotNull($trait->getMethod(self::METHOD)->getDocblock());
 }