Esempio n. 1
0
 public function testTypeRadioWithDifferentValue()
 {
     $input = new \Gajus\Dora\Input('test', ['type' => 'radio', 'value' => '2'], ['value' => 3]);
     $this->assertSame('<input name="test" type="radio" value="2">', $input->toString());
 }
Esempio n. 2
0
 public function testCustomAttributeOutput()
 {
     $input = new \Gajus\Dora\Input('test', ['data-test' => 'foo']);
     $this->assertSame('<input data-test="foo" name="test" type="text" value="">', $input->toString());
 }