| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class E164PhoneNumberValidatorTest extends \PHPUnit_Framework_TestCase |
||
| 18 | { |
||
| 19 | public function testValidationSuccess() |
||
| 20 | { |
||
| 21 | $validator = new E164PhoneNumberValidator(); |
||
| 22 | $validator->initialize($this->getContext($this->never())); |
||
| 23 | $validator->validate('+1-541-754-3010', new E164PhoneNumber()); |
||
| 24 | $validator->validate('+55 51 3333-3333', new E164PhoneNumber()); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testValidationError() |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return ExecutionContextInterface|\PHPUnit_Framework_MockObject_MockObject |
||
| 36 | */ |
||
| 37 | private function getContext($violations) |
||
| 43 | } |
||
| 44 | } |
||
| 45 |