Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class EmailTest extends TestCase |
||
9 | { |
||
10 | public function testGivenAValidEmailAValidVOIsReturned(): void |
||
21 | } |
||
22 | |||
23 | public function testGivenAnInvalidEmailAnExceptionIsThrown(): void |
||
33 | } |
||
34 | |||
35 | public function testGivenTwoEqualEmailsEqualReturnsTrue(): void |
||
36 | { |
||
37 | // Arrange |
||
38 | $email1 = Email::fromValue("[email protected]"); |
||
39 | $email2 = Email::fromValue("[email protected]"); |
||
40 | |||
41 | // Act |
||
42 | $equal = $email1->equal($email2); |
||
43 | |||
44 | // Assert |
||
45 | $this->assertTrue($equal); |
||
46 | } |
||
47 | |||
48 | public function testGivenTwoNotEqualEmailsEqualReturnsFalse(): void |
||
59 | } |
||
60 | } |
||
61 |