public function CNPhoneNumberTestCase::testPhoneCNValid in Phone 7
Same name and namespace in other branches
- 6 tests/phone-cn.test \CNPhoneNumberTestCase::testPhoneCNValid()
File
- tests/
phone.cn.test, line 16
Class
Code
public function testPhoneCNValid() {
$this
->assertTrue(valid_phone_number('cn', '86-755-83998006'), t('Test valid - 86-755-83998006'));
$this
->assertTrue(valid_phone_number('cn', '86-10-5851 6688'), t('Test valid - 86-10-5851 6688'));
$this
->assertTrue(valid_phone_number('cn', '86-10-6512 4940'), t('Test valid - 86-10-6512 4940'));
$this
->assertTrue(valid_phone_number('cn', '+86 21 6103 2200'), t('Test valid - +86 21 6103 2200'));
$this
->assertTrue(valid_phone_number('cn', '+86 10.85.32.83.23'), t('Test valid - +86 10.85.32.83.23'));
$this
->assertTrue(valid_phone_number('cn', '755-83998006'), t('Test valid - 755-83998006'));
$this
->assertTrue(valid_phone_number('cn', '+86-10-5851 6688'), t('Test valid - +86-10-5851 6688'));
$this
->assertTrue(valid_phone_number('cn', '10.85.32.83.23'), t('Test valid - 10.85.32.83.23'));
$this
->assertTrue(valid_phone_number('cn', '13900000000'), t('Test valid - 13900000000'));
$this
->assertTrue(valid_phone_number('cn', '10-5851 6688'), t('Test valid - 10-5851 6688'));
}