示例#1
0
 /**
  * test that setValue checks date
  */
 public function testSetValue()
 {
     $input = new DateInput('test', date('d-m-Y'));
     $this->assertEquals(date('d-m-Y'), $input->getValue());
     // should not be set
     $input->setValue('wrong');
     $this->assertEquals(date('d-m-Y'), $input->getValue());
 }