Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added testIsFixedLineAndMobile test

  • Loading branch information...
commit d2a32689a0ca8ef56dc47847b7f069d1095c8ad0 1 parent 0c01021
@davideme authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 Tests/PhoneNumberUtilTest.php
View
9 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));
+ }
+
/**
*
*/
Please sign in to comment.
Something went wrong with that request. Please try again.