Exemplo n.º 1
0
 public function testFormPrepareAttributesDefault()
 {
     $this->specify("Attributes are not prepared properly (2)", function () {
         $element1 = new Text("name");
         $element1->setLabel('name');
         $element1->setAttributes(['class' => 'big-input']);
         expect($element1->prepareAttributes())->equals(['name', 'class' => 'big-input']);
     });
 }
Exemplo n.º 2
0
 public function testFormPrepareAttributesNoDefault()
 {
     $element1 = new Text("name");
     $element1->setLabel('name');
     $this->assertEquals($element1->prepareAttributes(array('class' => 'big-input')), array('name', 'class' => 'big-input'));
 }