Exemplo n.º 1
0
 public function test_now()
 {
     $expected = LocalDate::nowOf(Clock::systemDefaultZone());
     $test = LocalDate::now();
     for ($i = 0; $i < 100; $i++) {
         if ($expected->equals($test)) {
             return;
         }
         $expected = LocalDate::nowOf(Clock::systemDefaultZone());
         $test = LocalDate::now();
     }
     $this->assertEquals($test, $expected);
 }