mirror of
https://github.com/archtechx/enums.git
synced 2025-12-13 03:54:03 +00:00
Extend functionality to work with pure enums
This commit is contained in:
parent
20fa78c2b1
commit
c2f0e7faf7
8 changed files with 99 additions and 15 deletions
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
|
||||
it('can return an array of case values')
|
||||
it('can return an array of case values from a backed enum')
|
||||
->expect(Status::values())
|
||||
->toBe([0, 1]);
|
||||
|
||||
it('can returns an empty array from a pure enum')
|
||||
->expect(Role::values())
|
||||
->toBe([]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue