You are here

function PhoneIntTest::testOverlongNumberWithoutCountryCode in Phone 6

Same name and namespace in other branches
  1. 7 tests/phone.int.test \PhoneIntTest::testOverlongNumberWithoutCountryCode()

File

tests/phone.int.test, line 79

Class

PhoneIntTest

Code

function testOverlongNumberWithoutCountryCode() {
  $this
    ->assertConversion('456 789 012 3456', FALSE, array(
    'phone_default_country_code' => '123',
  ), 'Invalid international phone number: Phone number is too long; international phone numbers are limited to 15 digits.');
}