Exemplo n.º 1
0
 public function testMinMaxDatetime()
 {
     $input = Builder::datetime();
     $input->min('2004-08-14T15:52:01+00:00');
     $input->max('2005-08-14T15:52:01+00:00');
     $input->val('Mon, 15 Aug 2005 15:52:01 +0000');
     $this->assertFalse($input->isValid());
     $input->val('Mon, 15 Aug 2004 15:52:01 +0000');
     $this->assertTrue($input->isValid());
 }