Commit b8c12307 by Carsten Brandt

added test for #5962

parent d674dc03
...@@ -81,6 +81,7 @@ class DateValidatorTest extends TestCase ...@@ -81,6 +81,7 @@ class DateValidatorTest extends TestCase
$this->assertFalse($val->validate('31.7.2013')); $this->assertFalse($val->validate('31.7.2013'));
$this->assertFalse($val->validate('31-7-2013')); $this->assertFalse($val->validate('31-7-2013'));
$this->assertFalse($val->validate('asdasdfasfd')); $this->assertFalse($val->validate('asdasdfasfd'));
$this->assertFalse($val->validate('20121212'));
$this->assertFalse($val->validate('')); $this->assertFalse($val->validate(''));
$this->assertFalse($val->validate(time())); $this->assertFalse($val->validate(time()));
$val->format = 'php:U'; $val->format = 'php:U';
...@@ -96,6 +97,7 @@ class DateValidatorTest extends TestCase ...@@ -96,6 +97,7 @@ class DateValidatorTest extends TestCase
$this->assertTrue($val->validate('2013-09-13')); $this->assertTrue($val->validate('2013-09-13'));
$this->assertFalse($val->validate('31.7.2013')); $this->assertFalse($val->validate('31.7.2013'));
$this->assertFalse($val->validate('31-7-2013')); $this->assertFalse($val->validate('31-7-2013'));
$this->assertFalse($val->validate('20121212'));
$this->assertFalse($val->validate('asdasdfasfd')); $this->assertFalse($val->validate('asdasdfasfd'));
$this->assertFalse($val->validate('')); $this->assertFalse($val->validate(''));
$this->assertFalse($val->validate(time())); $this->assertFalse($val->validate(time()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment