| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | } |
||
| 22 | |||
| 23 | public function testResultIsInvalidEmail() |
||
| 24 | { |
||
| 25 | $reason = new CharNotAllowed(); |
||
| 26 | $token = "T"; |
||
| 27 | $result = new InvalidEmail($reason, $token); |
||
| 28 | $expectedCode = $reason->code(); |
||
| 29 | $expectedDescription = $reason->description() . " in char " . $token; |
||
| 30 | |||
| 31 | $this->assertFalse($result->isValid()); |
||
| 32 | $this->assertEquals($expectedCode, $result->code()); |
||
| 33 | $this->assertEquals($expectedDescription, $result->description()); |
||
| 35 | } |