| 1 | <?php |
||
| 7 | class Issue76Test extends \PHPUnit_Framework_TestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @expectedException \libphonenumber\NumberParseException |
||
| 11 | * @expectedExceptionCode 1 |
||
| 12 | * @expectedExceptionMessage The string supplied did not seem to be a phone number. |
||
| 13 | */ |
||
| 14 | public function testIssue76() |
||
| 15 | { |
||
| 16 | $number = '[email protected]'; |
||
| 17 | $region = 'DE'; |
||
| 18 | $util = PhoneNumberUtil::getInstance(); |
||
| 19 | $util->parse($number, $region); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |