public function testDatetime() { $input = Input::datetime(); $this->genericElementTest($input); $this->genericInputTest($input, 'datetime'); //Values $input->val('2005-33-14T15:52:01+00:00'); $this->assertFalse($input->isValid()); $input->val('Mon, 15 Aug 2005 15:52:01 +0000'); $this->assertTrue($input->isValid()); $this->assertEquals('2005-08-15T15:52:01+00:00', $input->val()); $input->max('2005-08-14T15:52:01+00:00'); $this->assertFalse($input->isValid()); $input->max('2005-08-15T15:52:01+00:00'); $this->assertTrue($input->isValid()); $input->max('2005-08-16T15:52:01+00:00'); $this->assertTrue($input->isValid()); }