コード例 #1
0
 private function check(OffsetTime $test, $h, $m, $s, $n, ZoneOffset $offset)
 {
     $this->assertEquals($test->toLocalTime(), LocalTime::of($h, $m, $s, $n));
     $this->assertEquals($test->getOffset(), $offset);
     $this->assertEquals($test->getHour(), $h);
     $this->assertEquals($test->getMinute(), $m);
     $this->assertEquals($test->getSecond(), $s);
     $this->assertEquals($test->getNano(), $n);
     $this->assertEquals($test, $test);
     $this->assertEquals(OffsetTime::ofLocalTime(LocalTime::of($h, $m, $s, $n), $offset), $test);
 }