You are here

public function ZAPhoneNumberTestCase::testPhoneZAValid in Phone 6

Same name and namespace in other branches
  1. 7 tests/phone.za.test \ZAPhoneNumberTestCase::testPhoneZAValid()

File

tests/phone-za.test, line 16

Class

ZAPhoneNumberTestCase

Code

public function testPhoneZAValid() {
  $this
    ->assertTrue(valid_phone_number('za', '+27 11 888-8888'), t('Test valid - +27 11 888-8888'));
  $this
    ->assertTrue(valid_phone_number('za', '0333872119'), t('Test valid - 0333872119'));
  $this
    ->assertTrue(valid_phone_number('za', '074 101 2850'), t('Test valid - 074 101 2850'));
  $this
    ->assertTrue(valid_phone_number('za', '27723376484'), t('Test valid - 27723376484'));
  $this
    ->assertTrue(valid_phone_number('za', '0723376484'), t('Test valid - 0723376484'));
  $this
    ->assertTrue(valid_phone_number('za', '0111231234'), t('Test valid - 0111231234'));
  $this
    ->assertTrue(valid_phone_number('za', '011 123 1234'), t('Test valid - 011 123 1234'));
  $this
    ->assertTrue(valid_phone_number('za', '011-123-1234'), t('Test valid - 011-123-1234'));
  $this
    ->assertTrue(valid_phone_number('za', '0821231234'), t('Test valid - 0821231234'));
  $this
    ->assertTrue(valid_phone_number('za', '082 123 1234'), t('Test valid - 082 123 1234'));
  $this
    ->assertTrue(valid_phone_number('za', '+27821231234'), t('Test valid - +27821231234'));
  $this
    ->assertTrue(valid_phone_number('za', '+2782-123-1234'), t('Test valid - +2782-123-1234'));
  $this
    ->assertTrue(valid_phone_number('za', '+2782 123 1234'), t('Test valid - +2782 123 1234'));
  $this
    ->assertTrue(valid_phone_number('za', '27111231234'), t('Test valid - 27111231234'));
  $this
    ->assertTrue(valid_phone_number('za', '2711 123 1234'), t('Test valid - 2711 123 1234'));
  $this
    ->assertTrue(valid_phone_number('za', '082 123 1234'), t('Test valid - 082 123 1234'));
}