diff --git a/tests/CarbonInterval/ConstructTest.php b/tests/CarbonInterval/ConstructTest.php index 36ce6bb31f..abc66c874f 100644 --- a/tests/CarbonInterval/ConstructTest.php +++ b/tests/CarbonInterval/ConstructTest.php @@ -436,7 +436,7 @@ public function testFromSerialization() $today = new Carbon('today'); $interval = $today->diffAsCarbonInterval($past); /** @var CarbonInterval $copy */ - $copy = unserialize(serialize($interval)); + $copy = unserialize(serialize($interval)); $this->assertInstanceOf(CarbonInterval::class, $copy); @@ -454,7 +454,7 @@ public function testFromSerialization() $interval = $today->locale('ja')->diffAsCarbonInterval($past); /** @var CarbonInterval $copy */ - $copy = unserialize(serialize($interval)); + $copy = unserialize(serialize($interval)); $this->assertInstanceOf(CarbonInterval::class, $copy); @@ -483,7 +483,7 @@ private function assertSameIntervals(CarbonInterval $expected, CarbonInterval $a $expected->microseconds !== $actual->microseconds && $microsecondApproximation > 0 && $actual->microseconds >= $expected->microseconds - $microsecondApproximation - && $actual->microseconds <= $expected->microseconds - $microsecondApproximation + && $actual->microseconds <= $expected->microseconds + $microsecondApproximation ) { $actual->microseconds = $expected->microseconds; }