Example #1
0
 public function testTestingAidsWithTestNowSet()
 {
     $notNow = Date::yesterday();
     Date::setTestNow($notNow);
     $this->assertTrue(Date::hasTestNow());
     $this->assertSame($notNow, Date::getTestNow());
 }