You are here

public function ITPhoneNumberTestCase::testPhoneITValid in Phone 6

Same name and namespace in other branches
  1. 7 tests/phone.it.test \ITPhoneNumberTestCase::testPhoneITValid()

File

tests/phone-it.test, line 16

Class

ITPhoneNumberTestCase

Code

public function testPhoneITValid() {
  $this
    ->assertTrue(valid_phone_number('it', '06/2034567'), t('Test valid - 06/2034567'));
  $this
    ->assertTrue(valid_phone_number('it', '+39 02/123456'), t('Test valid - +39 02/123456'));
  $this
    ->assertTrue(valid_phone_number('it', '02-343536'), t('Test valid - 02-343536'));
  $this
    ->assertTrue(valid_phone_number('it', '02/343536'), t('Test valid - 02/343536'));
  $this
    ->assertTrue(valid_phone_number('it', '02 343536'), t('Test valid - 02 343536'));
  $this
    ->assertTrue(valid_phone_number('it', '+393381234567'), t('Test valid - +393381234567'));
  $this
    ->assertTrue(valid_phone_number('it', '+39 3381234567'), t('Test valid - +39 3381234567'));
  $this
    ->assertTrue(valid_phone_number('it', '+39 338 1234567'), t('Test valid - +39 338 1234567'));
  $this
    ->assertTrue(valid_phone_number('it', '+39 338-1234567'), t('Test valid - +39 338-1234567'));
  $this
    ->assertTrue(valid_phone_number('it', '3381234567'), t('Test valid - 3381234567'));
  $this
    ->assertTrue(valid_phone_number('it', '3381234567'), t('Test valid - 3381234567'));
  $this
    ->assertTrue(valid_phone_number('it', '338 1234567'), t('Test valid - 338 1234567'));
  $this
    ->assertTrue(valid_phone_number('it', '338-1234567'), t('Test valid - 338-1234567'));
}