mirror of
https://github.com/archtechx/enums.git
synced 2025-12-15 22:34:03 +00:00
from(int|string), tryFrom(int|string)
This commit is contained in:
parent
bdd8de68ff
commit
859fb9a03c
13 changed files with 26 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
test('the is method checks for equality', function () {
|
||||
expect(Status::PENDING->is(Status::PENDING))->toBeTrue();
|
||||
expect(Status::PENDING->is(Status::DONE))->toBeFalse();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue