Permalink
Browse files

Added testIsFixedLineAndMobile test

  • Loading branch information...
1 parent 0c01021 commit d2a32689a0ca8ef56dc47847b7f069d1095c8ad0 @davideme committed May 26, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Tests/PhoneNumberUtilTest.php
@@ -927,6 +927,15 @@ public function testIsFixedLine() {
$this->assertEquals(PhoneNumberType::FIXED_LINE, $this->phoneUtil->getNumberType(self::$deNumber));
}
+ public function testIsFixedLineAndMobile() {
+ $this->assertEquals(PhoneNumberType::FIXED_LINE_OR_MOBILE, $this->phoneUtil->getNumberType(self::$usNumber));
+
+ $fixedLineAndMobileNumber = new PhoneNumber();
+ $fixedLineAndMobileNumber->setCountryCode(54)->setNationalNumber(1987654321);
+ $this->assertEquals(PhoneNumberType::FIXED_LINE_OR_MOBILE,
+ $this->phoneUtil->getNumberType($fixedLineAndMobileNumber));
+ }
+
/**
*
*/

0 comments on commit d2a3268

Please sign in to comment.