|
|
@ -19,6 +19,7 @@ class DateValidatorTest extends TestCase |
|
|
|
public function testValidateValue() |
|
|
|
public function testValidateValue() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$val = new DateValidator; |
|
|
|
$val = new DateValidator; |
|
|
|
|
|
|
|
$this->assertFalse($val->validateValue('3232-32-32')); |
|
|
|
$this->assertTrue($val->validateValue('2013-09-13')); |
|
|
|
$this->assertTrue($val->validateValue('2013-09-13')); |
|
|
|
$this->assertFalse($val->validateValue('31.7.2013')); |
|
|
|
$this->assertFalse($val->validateValue('31.7.2013')); |
|
|
|
$this->assertFalse($val->validateValue('31-7-2013')); |
|
|
|
$this->assertFalse($val->validateValue('31-7-2013')); |
|
|
|