You are here

public function SEPhoneNumberTestCase::testPhoneSEInvalid in Phone 7

Same name and namespace in other branches
  1. 6 tests/phone-se.test \SEPhoneNumberTestCase::testPhoneSEInvalid()

File

tests/phone.se.test, line 28

Class

SEPhoneNumberTestCase

Code

public function testPhoneSEInvalid() {
  $this
    ->assertFalse(valid_phone_number('se', '46 08-123 456 78'), t('Test invalid'));
  $this
    ->assertFalse(valid_phone_number('se', '08 123 456 78'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('se', '0123 456 78'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('se', '34348abc'), t('Test invalid'));
  $this
    ->assertFalse(valid_phone_number('se', '452643242343432432435643623432'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('se', '532'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('se', '21003612-9999'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('se', '18790505-45458'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('se', '19740641-5559'), t('Test invalid '));
}