|
|
@@ -32,6 +32,7 @@ require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
|
|
|
require_once 'Zend/Form/SubForm.php';
|
|
|
require_once 'Zend/View.php';
|
|
|
+require_once 'Zend/Version.php';
|
|
|
|
|
|
/**
|
|
|
* @category Zend
|
|
|
@@ -120,6 +121,7 @@ class Zend_Form_SubFormTest extends PHPUnit_Framework_TestCase
|
|
|
*/
|
|
|
public function testRenderedSubFormDtShouldContainNoBreakSpace()
|
|
|
{
|
|
|
+ $this->assertSame('1.11.0dev',Zend_Version::VERSION);
|
|
|
$subForm = new Zend_Form_SubForm(array(
|
|
|
'elements' => array(
|
|
|
'foo' => 'text',
|
|
|
@@ -130,7 +132,18 @@ class Zend_Form_SubFormTest extends PHPUnit_Framework_TestCase
|
|
|
$form->addSubForm($subForm, 'foobar')
|
|
|
->setView(new Zend_View);
|
|
|
$html = $form->render();
|
|
|
- $this->assertContains('<dt> </dt>', $html);
|
|
|
+ $this->assertContains('> </dt>', $html );
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Prove the fluent interface on Zend_Form_Subform::loadDefaultDecorators
|
|
|
+ *
|
|
|
+ * @link http://framework.zend.com/issues/browse/ZF-9913
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function testFluentInterfaceOnLoadDefaultDecorators()
|
|
|
+ {
|
|
|
+ $this->assertSame($this->form, $this->form->loadDefaultDecorators());
|
|
|
}
|
|
|
}
|
|
|
|