Inheritance: extends FormControl
Exemplo 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);
 }
Exemplo n.º 2
0
 public function submit($value = 'Submit')
 {
     $submit = new Button($value);
     $submit->attribute('type', 'submit');
     return $submit;
 }