We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e56a65 commit e051412Copy full SHA for e051412
src/EnumRegistry.php
@@ -15,7 +15,7 @@ final class EnumRegistry
15
/**
16
* @var EnumInterface[]
17
*/
18
- private $enums;
+ private $enums = [];
19
20
21
* @param EnumInterface $enum
tests/Unit/EnumRegistryTest.php
@@ -33,7 +33,13 @@ public function testGetInvalidException(): void
33
$registry->get('type');
34
}
35
36
- public function testAddNominal(): void
+ public function testEmpty(): void
37
+ {
38
+ $registry = new EnumRegistry();
39
+ self::assertSame([], $registry->all());
40
+ }
41
+
42
+ public function testNominal(): void
43
{
44
$translator = new Translator([]);
45
$state = new StateEnum();
0 commit comments