public function testCanBeInternationallyDialled() { // We have no-international-dialling rules for the US in our test metadata that say that // toll-free numbers cannot be dialled internationally. $this->assertFalse($this->phoneUtil->canBeInternationallyDialled(self::$usTollFree)); // Normal US numbers can be internationally dialled. $this->assertTrue($this->phoneUtil->canBeInternationallyDialled(self::$usNumber)); // Invalid number. $this->assertTrue($this->phoneUtil->canBeInternationallyDialled(self::$usLocalNumber)); // We have no data for NZ - should return true. $this->assertTrue($this->phoneUtil->canBeInternationallyDialled(self::$nzNumber)); $this->assertTrue($this->phoneUtil->canBeInternationallyDialled(self::$internationalTollFree)); }