Skip to content

Commit

Permalink
changed expected result for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Çalışkan committed Jan 8, 2025
1 parent d1e695f commit 8910c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Carbon/SettersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ public function testTimestampSetter()
$d->timestamp = 1600887164.88952298;
$this->assertSame('2020-09-23 14:52:44.889523', $d->format('Y-m-d H:i:s.u'));

$d->setTimestamp(1599828571.235612);
$this->assertSame('2020-09-11 08:49:31.235612', $d->format('Y-m-d H:i:s.u'));
$d->setTimestamp(1599828571.23561248);
$this->assertSame(PHP_VERSION_ID < 80400 ? '2020-09-11 08:49:31.235612' : '2020-09-11 08:49:31.235613', $d->format('Y-m-d H:i:s.u'));

$d->timestamp = '0.88951247 1600887164';
$this->assertSame('2020-09-23 14:52:44.889512', $d->format('Y-m-d H:i:s.u'));
Expand Down

0 comments on commit 8910c51

Please sign in to comment.