You are here

public function ITPhoneNumberTestCase::testPhoneITInvalid in Phone 6

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

File

tests/phone-it.test, line 32

Class

ITPhoneNumberTestCase

Code

public function testPhoneITInvalid() {
  $this
    ->assertFalse(valid_phone_number('it', '02a343536'), t('Test invalid - 02a343536'));
  $this
    ->assertFalse(valid_phone_number('it', '02+343536'), t('Test invalid - 02+343536'));
  $this
    ->assertFalse(valid_phone_number('it', '0039 338 1234567'), t('Test invalid - 0039 338 1234567'));
  $this
    ->assertFalse(valid_phone_number('it', '(338)1234567'), t('Test invalid - (338)1234567'));
}