gossi\codegen\tests\model\DocblockTest::testTrait PHP Method

testTrait() public method

public testTrait ( )
    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());
    }