public function testSetAndGetDocBlock() { $code = new PhpClass(); $code->setDescription('first test'); $this->assertEquals('first test', $code->getDocBlock()->getDescription()); $code->setDocBlock(new DocBlock(array('description' => 'second test'))); $this->assertEquals('second test', $code->getDocBlock()->getDescription()); }