Skip to content

Commit 860c196

Browse files
New test to findValue() passing an invalid Key
1 parent 30d347e commit 860c196

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/EnumTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public function testFindValue()
199199
foreach ($enums as $key => $value) {
200200
$this->assertEquals($value, EnumFixture::findValue($key));
201201
}
202+
$this->assertEquals(null, EnumFixture::findValue("invalidKey"));
202203
}
203204

204205
/**

0 commit comments

Comments
 (0)