Example #1
0
 /**
  * Test getting options with bubble
  * @depends testGetOptions
  */
 public function testGetOptions_Bubble()
 {
     $options = array('zoo' => 123, 'foo' => 'bar', 'error:min' => 'minimal') + Form::$defaults + ['container' => true, 'label' => true];
     $this->form->setOption('zoo', 999);
     $this->form->setOption('foo', 'bar');
     $this->form->setOption('error:min', 'minimal');
     $element = $this->getMockBuilder('Jasny\\FormBuilder\\Element')->getMockForAbstractClass();
     $element->setOption('zoo', 123);
     $this->form->add($element);
     $this->assertSame($options, $element->getOptions());
 }