Skip to content

Commit

Permalink
test closest methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoroosevelt committed Sep 18, 2023
1 parent 1621ea9 commit a55d22a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase/Date/ComparisonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function testClosestWithOthers(): void
$dt2 = ChronosDate::create(2015, 5, 20);
$dt3 = ChronosDate::create(2015, 5, 21);
$dt4 = ChronosDate::create(2015, 5, 22);
$closest = $instance->closest($dt1, $dt2, $dt3, $dt4);
$closest = $instance->closest($dt4, $dt3, $dt1, $dt2);
$this->assertSame($dt1, $closest);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/DateTime/ComparisonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function testClosestWithOthers(): void
$dt2 = Chronos::create(2015, 5, 28, 14, 0, 0);
$dt3 = Chronos::create(2015, 5, 28, 15, 0, 0);
$dt4 = Chronos::create(2015, 5, 28, 16, 0, 0);
$closest = $instance->closest($dt1, $dt2, $dt3, $dt4);
$closest = $instance->closest($dt4, $dt3, $dt1, $dt2);
$this->assertSame($dt1, $closest);
}

Expand Down

0 comments on commit a55d22a

Please sign in to comment.