Exemplo n.º 1
0
 public function testFailWithUpperBoundary()
 {
     $dateTime = new \DateTime('2015-03-06 23:59:59');
     $dateTime = $dateTime->modify('+1 seconds');
     $this->assertFalse($this->rule->validate($dateTime, $dateTime->format('l, Y-m-d H:i:m')));
 }
Exemplo n.º 2
0
 public function testFailWithUpperBoundary()
 {
     $this->assertFalse($this->rule->validate(new \DateTime('2015-03-03 13:00', new \DateTimeZone('Australia/Sydney'))));
 }
Exemplo n.º 3
0
 public function testFailWithUpperBoundary()
 {
     $this->assertFalse($this->rule->validate(new \DateTime('2015-03-09 00:00:00')));
 }