1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 17:14:04 +00:00
enums/tests/Pest/ValuesTest.php
Samuel Levy dea16e414c Code review changes
Altered `::values()` to act like `::names()` for backed enums, code style fixes, general cleanups
2022-03-15 07:35:08 +10:00

9 lines
237 B
PHP

<?php
it('can return an array of case values from a backed enum')
->expect(Status::values())
->toBe([0, 1]);
it('can return an array of case names from a pure enum')
->expect(Role::values())
->toBe(['ADMIN', 'GUEST']);