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 testGivenAnInvalidEmailAnExceptionIsThrown(): void |
||
24 | { |
||
25 | $this->expectException(\InvalidArgumentException::class); |
||
26 | $this->expectExceptionMessage("Name value must have at least one character"); |
||
27 | |||
28 | // Arrange |
||
29 | $name = ""; |
||
30 | |||
31 | // Act |
||
32 | Name::fromValue($name); |
||
33 | } |
||
35 |