Пример #1
0
 public function testDateValidWhenEmptyButNotRequiredAndForceValidateEmptyValuesIsEnabled()
 {
     $v = new Validator(array('date' => ''));
     $v->rule('date', 'date');
     $v->forceValidateEmptyValues(true);
     $this->assertFalse($v->validate());
 }