Exemple #1
0
 /**
  * test changing date format
  */
 public function testDateFormat()
 {
     $input = new DateInput('test');
     // default setting
     // we can check that everything was set via the validation
     $this->assertEquals(array('date_format:d-m-Y'), $input->getValidations());
     $input->setDateFormat('Ymd');
     $this->assertEquals(array('date_format:Ymd'), $input->getValidations());
 }