public function test_compareTo_bothInstantComparator() { $a = OffsetDateTime::of(2008, 6, 30, 11, 20, 40, 4, self::OFFSET_PTWO()); $b = OffsetDateTime::of(2008, 6, 30, 10, 20, 40, 5, self::OFFSET_PONE()); $this->assertEquals($a->compareTo($b), OffsetDateTime::compareInstant($a, $b), "for nano != nano, compareTo and timeLineOrder() should be the same"); }