From baad658904a7ae3b933e38087b82aea7d28b474e Mon Sep 17 00:00:00 2001 From: Joshua Gigg Date: Mon, 2 Dec 2013 18:53:57 +0000 Subject: [PATCH] Add test confirming #14 is fixed Wasn't actually a bug, but the online demo was running an older version of libphonenumber-for-php that wasn't up to date. --- .../Tests/Issues/Issue14Test.php | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Tests/libphonenumber/Tests/Issues/Issue14Test.php diff --git a/Tests/libphonenumber/Tests/Issues/Issue14Test.php b/Tests/libphonenumber/Tests/Issues/Issue14Test.php new file mode 100644 index 000000000..e33d44e70 --- /dev/null +++ b/Tests/libphonenumber/Tests/Issues/Issue14Test.php @@ -0,0 +1,37 @@ +phoneUtil = PhoneNumberUtil::getInstance(); + } + + public function testKWMobileNumber() + { + $number = "51440519"; + $phoneNumber = $this->phoneUtil->parse($number, "KW"); + + $this->assertTrue($this->phoneUtil->isValidNumber($phoneNumber)); + $this->assertEquals(PhoneNumberType::MOBILE, $this->phoneUtil->getNumberType($phoneNumber)); + } +} + +/* EOF */ \ No newline at end of file