コード例 #1
0
 public function testExistsField()
 {
     // setup
     $frm = new SpoonForm('name', 'action');
     $frm->addButton('submit', 'submit');
     // checks
     $this->assertTrue($frm->existsField('submit'));
     $this->assertFalse($frm->existsField('custom_field'));
 }