Index: tests/Zend/View/Helper/FormRadioTest.php
===================================================================
--- tests/Zend/View/Helper/FormRadioTest.php (revision 24270)
+++ tests/Zend/View/Helper/FormRadioTest.php (working copy)
@@ -429,6 +429,49 @@
$this->assertRegExp('/]*)(id="'.$name.'--1")([^>]*)(checked="checked")/', $html);
}
+ /**
+ * @group ZF-11620
+ */
+ public function testSeparatorCanRendersAsXhtmlByDefault()
+ {
+ $this->view->doctype('XHTML1_STRICT');
+ $options = array(
+ 'foo' => 'Foo',
+ 'bar' => 'Bar',
+ 'baz' => 'Baz'
+ );
+ $html = $this->helper->formRadio(array(
+ 'name' => 'foo',
+ 'value' => 'bar',
+ 'options' => $options,
+ ));
+
+ $this->assertContains('
', $html);
+ $count = substr_count($html, '
');
+ $this->assertEquals(2, $count);
+ }
+
+ /**
+ * @group ZF-11620
+ */
+ public function testeparatorCanRendersAsHtml()
+ {
+ $this->view->doctype('HTML4_STRICT');
+ $options = array(
+ 'foo' => 'Foo',
+ 'bar' => 'Bar',
+ 'baz' => 'Baz'
+ );
+ $html = $this->helper->formRadio(array(
+ 'name' => 'foo',
+ 'value' => 'bar',
+ 'options' => $options,
+ ));
+
+ $this->assertContains('
', $html);
+ $count = substr_count($html, '
');
+ $this->assertEquals(2, $count);
+ }
}
// Call Zend_View_Helper_FormRadioTest::main() if this source file is executed directly.