You are here

public function PKPhoneNumberTestCase::testPhonePKValid in Phone 6

Same name and namespace in other branches
  1. 7 tests/phone.pk.test \PKPhoneNumberTestCase::testPhonePKValid()

File

tests/phone-pk.test, line 16

Class

PKPhoneNumberTestCase

Code

public function testPhonePKValid() {
  $this
    ->assertTrue(valid_phone_number('pk', '+92 321 7469854'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('pk', '923217469857'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('pk', '041 2680226'), t('Test valid'));
}