Esempio n. 1
0
 /**
  * test hidden attribute
  */
 public function testInputHidden()
 {
     $input = new TextInput('test');
     $this->assertFalse($input->getHidden(), 'Initially hidden is false');
     $input->setHidden('invalid');
     $this->assertFalse($input->getHidden(), 'Giving an invalid option should not change hidden');
     $input->setHidden(true);
     $this->assertTrue($input->getHidden());
     $input->setHidden(false);
     $this->assertFalse($input->getHidden());
 }