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