Skip to content

Commit

Permalink
Fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdekker committed Oct 6, 2024
1 parent 2424d76 commit a8fdddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/ArraysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public function testWrap(): void
public function testRemoveTypes(): void
{
$input = [false, 0, '0', 'false', true, 1, '1', 'true'];
static::assertEqualsCanonicalizing([0, '0', 'false', 1, '1', 'true'], Arrays::removeTypes($input, ['bool']));
static::assertSame([0, '0', 'false', 1, '1', 'true'], array_values(Arrays::removeTypes($input, ['bool'])));
static::assertSame(['null'], Arrays::removeTypes(['null', null], ['null']));
static::assertSame(['1', 2.00], Arrays::removeTypes(['1', 2.00, 3], ['int']));
static::assertSame([1, '2.00'], Arrays::removeTypes([1, '2.00', 3.00], ['float']));
Expand Down

0 comments on commit a8fdddf

Please sign in to comment.