public function testDocblock()
{
$d = DocblockGenerator::factory('This is the description');
$d->setTag('category', 'Category')->setTag('package', 'Package_Name')->setTag('author', 'John Doe')->setTag('throws', 'Exception')->setParam('array', '$ary')->setParam('boolean', '$blah')->setReturn('mixed');
$doc = (string) $d;
ob_start();
$d->render();
$output = ob_get_clean();
$this->assertContains('* @package Package_Name', $output);
$this->assertContains('* This is the description', $doc);
$this->assertContains('* @category Category', $doc);
$this->assertContains('* @package Package_Name', $doc);
$this->assertContains('* @author John Doe', $doc);
$this->assertContains('* @param array $ary', $doc);
$this->assertContains('* @param boolean $blah', $doc);
$this->assertContains('* @throws Exception', $doc);
$this->assertContains('* @return mixed', $doc);
}