Exemplo n.º 1
0
 /**
  * Get name and text
  */
 public function testCheckBox()
 {
     $oCheckBox = new CheckBox(htmlspecialchars('chkBox', ENT_COMPAT, 'UTF-8'), htmlspecialchars('CheckBox', ENT_COMPAT, 'UTF-8'));
     $this->assertEquals(htmlspecialchars('chkBox', ENT_COMPAT, 'UTF-8'), $oCheckBox->getName());
     $this->assertEquals(htmlspecialchars('CheckBox', ENT_COMPAT, 'UTF-8'), $oCheckBox->getText());
 }
Exemplo n.º 2
0
 /**
  * Get name and text
  */
 public function testCheckBox()
 {
     $oCheckBox = new CheckBox('chkBox', 'CheckBox');
     $this->assertEquals($oCheckBox->getName(), 'chkBox');
     $this->assertEquals($oCheckBox->getText(), 'CheckBox');
 }