| 1 | <?php |
||
| 8 | class Issue3Test extends \PHPUnit_Framework_TestCase |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var PhoneNumberUtil |
||
| 13 | */ |
||
| 14 | public $phoneNumberUtil; |
||
| 15 | |||
| 16 | public function setUp() |
||
| 17 | { |
||
| 18 | PhoneNumberUtil::resetInstance(); |
||
| 19 | $this->phoneNumberUtil = PhoneNumberUtil::getInstance(); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testParseUSNumber() |
||
| 23 | { |
||
| 24 | $number = $this->phoneNumberUtil->parse('011543549480042', 'US'); |
||
| 25 | |||
| 26 | $this->assertEquals("+543549480042", $this->phoneNumberUtil->format($number, PhoneNumberFormat::E164)); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |