Index: LabelTest.php =================================================================== --- LabelTest.php (revision 19044) +++ LabelTest.php (working copy) @@ -298,6 +298,19 @@ $content = $this->decorator->render(''); $this->assertTrue(empty($content), $content); } + + /** + * @group ZF-4841 + */ + public function testSettingTagToEmptyValueShouldSetTagToNull() + { + $element = new Zend_Form_Element_Text('foo', array('label' => 'Foo')); + $this->decorator->setElement($element) + ->setOptions(array('tag' => 'dt')); + $this->decorator->setTag(''); + $tag = $this->decorator->getTag(); + $this->assertTrue( NULL === $tag, $tag ); + } } // Call Zend_Form_Decorator_LabelTest::main() if this source file is executed directly.