add to be backed enum expectation

This commit is contained in:
JonPurvis
2023-11-18 03:31:35 +00:00
parent bd6b166a62
commit 2e01776272
8 changed files with 150 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
test('enum is backed by int')
->expect('Tests\Fixtures\Arch\ToBeIntBackedEnum\HasIntBacking')
->toBeIntBackedEnum();
test('enum is not backed by int')
->expect('Tests\Fixtures\Arch\ToBeIntBackedEnum\HasStringBacking')
->not->toBeIntBackedEnum();

View File

@ -0,0 +1,9 @@
<?php
test('enum is backed by string')
->expect('Tests\Fixtures\Arch\ToBeStringBackedEnum\HasStringBacking')
->toBeStringBackedEnum();
test('enum is not backed by string')
->expect('Tests\Fixtures\Arch\ToBeStringBackedEnum\HasIntBacking')
->not->toBeStringBackedEnum();