1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 11:14:05 +00:00
enums/tests/Pest/OptionsTest.php
2022-03-12 23:09:34 +10:00

13 lines
321 B
PHP

<?php
it('can return an associative array of options from a backed enum')
->expect(Status::options())->toBe([
'PENDING' => 0,
'DONE' => 1,
]);
it('can return an indexed array of options from a pure enum')
->expect(Role::options())->toBe([
0 => 'ADMIN',
1 => 'GUEST',
]);