| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function testE164NumberWithExtension() |
||
| 23 | { |
||
| 24 | $number = new PhoneNumber(); |
||
| 25 | $number->setCountryCode(44)->setNationalNumber(1174960123)->setExtension(101); |
||
| 26 | |||
| 27 | $phoneNumberUtil = PhoneNumberUtil::getInstance(); |
||
| 28 | $this->assertEquals('+441174960123', $phoneNumberUtil->format($number, PhoneNumberFormat::E164)); |
||
| 29 | $this->assertEquals('+44 117 496 0123 x101', $phoneNumberUtil->format($number, PhoneNumberFormat::INTERNATIONAL)); |
||
| 30 | $this->assertEquals('0117 496 0123 x101', $phoneNumberUtil->format($number, PhoneNumberFormat::NATIONAL)); |
||
| 31 | $this->assertEquals('tel:+44-117-496-0123;ext=101', $phoneNumberUtil->format($number, PhoneNumberFormat::RFC3966)); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |