1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-12 19:24:04 +00:00

Extend functionality to work with pure enums

This commit is contained in:
Samuel Levy 2022-03-12 22:56:43 +10:00
parent 20fa78c2b1
commit c2f0e7faf7
8 changed files with 99 additions and 15 deletions

View file

@ -1,5 +1,9 @@
<?php
it('can return an array of case names')
it('can return an array of case names from backed enums')
->expect(Status::names())
->toBe(['PENDING', 'DONE']);
it('can return an array of case names from pure enums')
->expect(Role::names())
->toBe(['ADMIN', 'GUEST']);