public function UAPhoneNumberTestCase::testPhoneUAValid in Phone 6
Same name and namespace in other branches
- 7 tests/phone.ua.test \UAPhoneNumberTestCase::testPhoneUAValid()
File
- tests/
phone-ua.test, line 20
Class
Code
public function testPhoneUAValid() {
$this
->assertTrue(valid_phone_number('ua', '+38-044-283-93-57'), t('Kyiv landline test'));
$this
->assertTrue(valid_phone_number('ua', '(044)2839357'), t('Kyiv landline test'));
$this
->assertTrue(valid_phone_number('ua', '+380442839357'), t('Kyiv landline test'));
$this
->assertTrue(valid_phone_number('ua', '+38 (044)537-28-07'), t('Kyiv landline test'));
$this
->assertTrue(valid_phone_number('ua', '044 537-28-07'), t('Kyiv landline test'));
$this
->assertTrue(valid_phone_number('ua', '+38 032 2724042 '), t('Lviv landline test'));
$this
->assertTrue(valid_phone_number('ua', '+380623621047'), t('Yasinovata landline test'));
}