You are here

public function ZAPhoneNumberTestCase::testPhoneZAInvalid in Phone 7

Same name and namespace in other branches
  1. 6 tests/phone-za.test \ZAPhoneNumberTestCase::testPhoneZAInvalid()

File

tests/phone.za.test, line 35

Class

ZAPhoneNumberTestCase

Code

public function testPhoneZAInvalid() {
  $this
    ->assertFalse(valid_phone_number('za', '9723376484'), t('Test invalid - 9723376484'));
  $this
    ->assertFalse(valid_phone_number('za', '26723376484'), t('Test invalid - 26723376484'));
  $this
    ->assertFalse(valid_phone_number('za', '(011)1231234'), t('Test invalid - (011)1231234'));
  $this
    ->assertFalse(valid_phone_number('za', '(+2711) 123 1234'), t('Test invalid - (+2711) 123 1234'));
  $this
    ->assertFalse(valid_phone_number('za', '(011) 123-1234'), t('Test invalid - (011) 123-1234'));
}