_docblock = new Zend_CodeGenerator_Php_Docblock(); } public function teardown() { $this->_docblock = null; } public function testShortDescriptionGetterAndSetter() { $this->_docblock->setShortDescription('Short Description'); $this->assertEquals('Short Description', $this->_docblock->getShortDescription()); } public function testLongDescriptionGetterAndSetter() { $this->_docblock->setLongDescription('Long Description'); $this->assertEquals('Long Description', $this->_docblock->getLongDescription()); } public function testTagGettersAndSetters() { $this->_docblock->setTag(array('name' => 'blah')); $this->_docblock->setTag(new Zend_CodeGenerator_Php_Docblock_Tag_Param(array('datatype' => 'string'))); $this->_docblock->setTag(new Zend_CodeGenerator_Php_Docblock_Tag_Return(array('datatype' => 'int'))); $this->assertEquals(3, count($this->_docblock->getTags())); $target = <<assertEquals($target, $this->_docblock->generate()); } }