Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class NameTest extends TestCase |
||
9 | { |
||
10 | public function testGivenAValidNameAValidVOIsReturned(): void |
||
21 | } |
||
22 | |||
23 | public function testGivenAnInvalidEmailAnExceptionIsThrown(): void |
||
33 | } |
||
34 | |||
35 | public function testGivenTwoEqualNamesEqualReturnsTrue(): void |
||
36 | { |
||
37 | // Arrange |
||
38 | $name1 = Name::fromValue("John Smith"); |
||
39 | $name2 = Name::fromValue("John Smith"); |
||
40 | |||
41 | // Act |
||
42 | $equal = $name1->equal($name2); |
||
43 | |||
44 | // Assert |
||
45 | $this->assertTrue($equal); |
||
46 | } |
||
47 | |||
48 | public function testGivenTwoNotEqualNamesEqualReturnsFalse(): void |
||
59 | } |
||
60 | } |
||
61 |