コード例 #1
0
 public function testCanSetArrayOfEmptyAttributes()
 {
     $expected = "<input type='checkbox' disabled='disabled' required='required' checked='checked'>";
     $input = new HTMLElement('input');
     $input->setInputType('checkbox');
     $input->setAttribute(['disabled', 'required', 'checked']);
     $this->assertEquals($expected, $input->getNode());
 }