Skip to content

Commit

Permalink
Match the argument to the test data.
Browse files Browse the repository at this point in the history
  • Loading branch information
skeemer committed Sep 20, 2024
1 parent de76793 commit 4536f98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Integration/DataType/HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ public function test_it_can_verify_and_serialize_data(
HandlerInterface $handler,
string $type,
mixed $value,
array $incompatible,
array $invalid,
null|int|float $numericValue,
bool $usesHmac
): void {
$this->assertEquals($type, $handler->getDataType());
$this->assertTrue($handler->canHandleValue($value));

foreach ($incompatible as $incompatibleValue) {
$this->assertFalse($handler->canHandleValue($incompatibleValue), "Failed for ". get_debug_type($incompatibleValue));
foreach ($invalid as $invalidValue) {
$this->assertFalse($handler->canHandleValue($invalidValue), "Failed for ". get_debug_type($invalidValue));
}

$serialized = $handler->serializeValue($value);
Expand Down

0 comments on commit 4536f98

Please sign in to comment.