Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function testGivenAnInvalidGenderAnExceptionIsThrown(): void |
||
25 | { |
||
26 | $this->expectException(\InvalidArgumentException::class); |
||
27 | $this->expectExceptionMessage("Tortoise is not a valid gender"); |
||
28 | |||
29 | // Arrange |
||
30 | $gender = "Tortoise"; |
||
31 | |||
32 | // Act |
||
33 | Gender::fromValue($gender); |
||
34 | } |
||
36 |