Index: tests/Zend/View/Helper/FormErrorsTest.php =================================================================== --- tests/Zend/View/Helper/FormErrorsTest.php (revision 25051) +++ tests/Zend/View/Helper/FormErrorsTest.php (working copy) @@ -167,9 +167,26 @@ public function testCanSetClassAttribute() { $options = array('class' => 'custom-class'); - $acutallHtml = $this->helper->formErrors(array(), $options); - $this->assertEquals('', $acutallHtml); + $actuallHtml = $this->helper->formErrors(array(), $options); + $this->assertEquals('', $actuallHtml); } + + /** + * @group ZF-5962 + */ + public function testCanSetElementStringsPerOptions() + { + $actual = $this->helper->formErrors( + array('foo', 'bar', 'baz'), + array( + 'elementStart' => '

', + 'elementEnd' => '

', + 'elementSeparator' => '
', + ) + ); + + $this->assertEquals('

foo
bar
baz

', $actual); + } } // Call Zend_View_Helper_FormErrorsTest::main() if this source file is executed directly.