public function HUPhoneNumberTestCase::testPhoneHUValid in Phone 6
Same name and namespace in other branches
- 7 tests/phone.hu.test \HUPhoneNumberTestCase::testPhoneHUValid()
File
- tests/
phone-hu.test, line 16
Class
Code
public function testPhoneHUValid() {
$this
->assertTrue(valid_phone_number('hu', '+3611234567'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+3676123456'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+36301234567'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+36 1 1234567'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+36 76 123456'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+36 30 1234567'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+36(1)1234567'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+36(76)123456'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '+36(30)1234567'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '1/123-4567'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '76/123-456'), t('Test valid'));
$this
->assertTrue(valid_phone_number('hu', '30/123-45-67'), t('Test valid'));
}