Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
trippo authored and github-actions[bot] committed Jul 2, 2022
1 parent 1047e5a commit ceb66da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/EnumFromTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
'String Backed Enum' => [StatusString::class, 'P', StatusString::PENDING],
]);


it('does work with tryFromValue method', function ($enumCass, $value, $result) {
expect($enumCass::tryFromValue($value))->toBe($result)->not->toThrow(ValueError::class);
})->with([
Expand All @@ -91,4 +90,3 @@
'String Backed Enum' => [StatusString::class, 'P', StatusString::PENDING],
'String Backed Enum missing' => [StatusString::class, 'M', null],
]);

4 changes: 2 additions & 2 deletions tests/EnumValuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
expect($enumClass::values($cases))->toBe($result);
})->with([
'Pure enum' => [Status::class, [Status::NO_RESPONSE, Status::DISCARDED], ['NO_RESPONSE', 'DISCARDED']],
'Pure Pascal Case enum' => [StatusPascalCase::class, [StatusPascalCase::NoResponse, StatusPascalCase::Discarded], ['NoResponse', 'Discarded' ]],
'Pure Pascal Case enum' => [StatusPascalCase::class, [StatusPascalCase::NoResponse, StatusPascalCase::Discarded], ['NoResponse', 'Discarded']],
'String Backed enum' => [StatusString::class, [StatusString::NO_RESPONSE, StatusString::DISCARDED], ['N', 'D']],
'Int Backed enum' => [StatusInt::class, [StatusInt::NO_RESPONSE, StatusInt::DISCARDED], [3, 2]],
]);
Expand Down Expand Up @@ -89,4 +89,4 @@
})->with([
'backed enum' => [StatusString::class, []],
'empty cases enum' => [EmptyClass::class, null],
]);
]);

0 comments on commit ceb66da

Please sign in to comment.