Index: /var/www/ZF_1.6.0RC1/tests/Zend/View/Helper/FormErrorsTest.php
===================================================================
--- /var/www/ZF_1.6.0RC1/tests/Zend/View/Helper/FormErrorsTest.php (revision 10499)
+++ /var/www/ZF_1.6.0RC1/tests/Zend/View/Helper/FormErrorsTest.php (working copy)
@@ -64,7 +64,7 @@
public function testGetElementStartReturnsDefaultValue()
{
- $this->assertEquals('
- ', $this->helper->getElementStart());
+ $this->assertEquals('
- ', $this->helper->getElementStart());
}
public function testCanSetElementEndString()
@@ -133,6 +133,17 @@
$this->assertContains($errors['foo'], $html);
$this->assertContains($errors['bar'], $html);
}
+
+ /**
+ * ZF-3477
+ */
+ public function testCanSetClassAttribute()
+ {
+ $options = array('class' => 'custom-class');
+ $actualHtml = $this->helper->formErrors(array(), $options);
+ $expectedHtml = '';
+ $this->assertEquals($expectedHtml, $actualHtml);
+ }
}
// Call Zend_View_Helper_FormErrorsTest::main() if this source file is executed directly.