Skip to content

Commit

Permalink
Using assertInstanceOf to assert expected class (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k authored Aug 25, 2020
1 parent 63dc40f commit 52178a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/BigNumberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testSum(array $values, string $expectedClass, string $expectedSu
{
$sum = BigNumber::sum(...$values);

self::assertSame($expectedClass, get_class($sum));
self::assertInstanceOf($expectedClass, $sum);
self::assertSame($expectedSum, (string) $sum);
}

Expand Down

0 comments on commit 52178a1

Please sign in to comment.