Skip to content

Commit

Permalink
add debug message why point is not ahead of another
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Jan 19, 2025
1 parent 84e3a7c commit 24da723
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/NowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,14 @@ public function testAheadOf()
\sleep(1);
$point2 = PointInTime::now();

$this->assertTrue($point2->aheadOf($point));
$this->assertFalse($point->aheadOf($point2));
$this->assertTrue(
$point2->aheadOf($point),
$point->format(Format::iso8601()).' '.$point2->format(Format::iso8601()),
);
$this->assertFalse(
$point->aheadOf($point2),
$point->format(Format::iso8601()).' '.$point2->format(Format::iso8601()),
);
}

public function testEquals()
Expand Down

0 comments on commit 24da723

Please sign in to comment.