예제 #1
0
 public function testRenderingShouldEnforceFormName()
 {
     $element = new Zend_Dojo_Form();
     $element->setAttribs(array('style' => 'width: 300px; height: 500px;', 'class' => 'someclass', 'dijitParams' => array('labelAttr' => 'foobar', 'typeAttr' => 'barbaz')));
     $element->setView($this->view);
     $decorator = new Zend_Dojo_Form_Decorator_DijitForm();
     $decorator->setElement($element);
     $html = $decorator->render('');
     $this->assertRegexp('/id=".{1,}"/', $html, $html);
 }