File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ public function it_should_create_enum(): void
24
24
$ this ->assertEquals ('sometimes_good_or_evil ' , Character::sometimesGoodSometimesEvil ()->getValue ());
25
25
$ this ->assertEquals ('sometimes_good_or_evil ' , Character::SOMETIMES_GOOD_SOMETIMES_EVIL ()->getValue ());
26
26
$ this ->assertEquals ('sometimes_good_or_evil ' , Character::sometimes_good_sometimes_evil ()->getValue ());
27
+ $ this ->assertEquals ('sometimes_good_or_evil ' , Character::fromName ('sometimesGoodSometimesEvil ' )->getValue ());
27
28
$ this ->assertEquals ('sometimes_good_or_evil ' , Character::fromName ('sometimes_good_sometimes_evil ' )->getValue ());
29
+ $ this ->assertEquals ('sometimes_good_or_evil ' , Character::fromName ('SOMETIMES_GOOD_SOMETIMES_EVIL ' )->getValue ());
28
30
$ this ->assertEquals ('sometimes_good_or_evil ' , Character::fromValue ('sometimes_good_or_evil ' )->getValue ());
29
31
$ this ->assertTrue (Character::good ()->equals (Character::good ()));
30
32
$ this ->assertTrue (Character::good ()->equals (Character::fromName ('good ' )));
You can’t perform that action at this time.
0 commit comments