/** * Test that date() validates timestamps in any format. */ public function testDate() { $this->assertTrue(Validate::date('2012-05-25')); $this->assertTrue(Validate::date('1946-09-11 12:03:43')); $this->assertTrue(Validate::date('March 25th 1993')); $this->assertFalse(Validate::date('02-32-2011')); $this->assertFalse(Validate::date('May 40th 2054')); }