Inheritance: extends FormControl
Ejemplo n.º 1
0
 public function testCanChangeValue()
 {
     $button = new Button('Button');
     $button->value('Click Me');
     $expected = '<button type="button">Click Me</button>';
     $result = $button->render();
     $this->assertEquals($expected, $result);
 }
Ejemplo n.º 2
0
 public function submit($value = 'Submit')
 {
     $submit = new Button($value);
     $submit->attribute('type', 'submit');
     return $submit;
 }