Example #1
0
 /**
  * @test
  */
 public function shouldGenerateRadioButtonTag()
 {
     //when
     $result = radioButtonTag('age', 33);
     //then
     $expected = '<input type="radio" id="age" name="age" value="33"/>';
     $this->assertEquals($expected, $result);
 }
Example #2
0
 public function radioField($field, array $options = array())
 {
     $attributes = $this->_generatePredefinedAttributes($field);
     $attributes = $this->_mergeAttributes($attributes, $options);
     return radioButtonTag($this->generateName($field), $this->_object->{$field}, $attributes);
 }