public function testNow() { $now = new \DateTime(); $localNow = LocalDate::now(); $this->assertLessThan(1, $localNow->getTimestamp() - $now->getTimestamp(), 'Now must be constructed correctly'); $this->assertGreaterThanOrEqual(0, $now->getTimestamp() - $localNow->getTimestamp(), 'Now must be constructed correctly'); }