예제 #1
0
 /**
  * @group long
  */
 public function test_now_Clock_allSecsInDay_beforeEpoch()
 {
     for ($i = -1; $i >= -(24 * 60 * 60); $i--) {
         $expected = Instant::ofEpochSecond($i)->plusNanos(123456789);
         $clock = Clock::fixed($expected, ZoneOffset::UTC());
         $test = Instant::nowOf($clock);
         $this->assertEquals($test, $expected);
     }
 }