public function UAPhoneNumberTestCase::testPhoneUAInvalid in Phone 7
Same name and namespace in other branches
- 6 tests/phone-ua.test \UAPhoneNumberTestCase::testPhoneUAInvalid()
File
- tests/
phone.ua.test, line 30
Class
Code
public function testPhoneUAInvalid() {
$this
->assertFalse(valid_phone_number('ua', '+380117777777'), t('Test with noexist citycode 011'));
$this
->assertFalse(valid_phone_number('ua', '+380711234567'), t('Test with noexist citycode 071'));
$this
->assertFalse(valid_phone_number('ua', '+38044123456'), t('Test with short phone'));
$this
->assertFalse(valid_phone_number('ua', '044123456'), t('Test with short phone'));
$this
->assertFalse(valid_phone_number('ua', '+3804412345678'), t('Test with long phone'));
$this
->assertFalse(valid_phone_number('ua', '04412345678'), t('Test with long phone'));
$this
->assertFalse(valid_phone_number('ua', '8044223-95-26'), t('Test with obsolete leading 8 notation'));
}