private function check(OffsetDateTime $test, $y, $mo, $d, $h, $m, $s, $n, ZoneOffset $offset) { $this->assertEquals($test->getYear(), $y); $this->assertEquals($test->getMonth()->getValue(), $mo); $this->assertEquals($test->getDayOfMonth(), $d); $this->assertEquals($test->getHour(), $h); $this->assertEquals($test->getMinute(), $m); $this->assertEquals($test->getSecond(), $s); $this->assertEquals($test->getNano(), $n); $this->assertEquals($test->getOffset(), $offset); $this->assertEquals($test, $test); $this->assertEquals(OffsetDateTime::ofDateTime(LocalDateTime::of($y, $mo, $d, $h, $m, $s, $n), $offset), $test); }