You are here

public function SEPhoneNumberTestCase::testPhoneSEValid in Phone 6

Same name and namespace in other branches
  1. 7 tests/phone.se.test \SEPhoneNumberTestCase::testPhoneSEValid()

File

tests/phone-se.test, line 16

Class

SEPhoneNumberTestCase

Code

public function testPhoneSEValid() {
  $this
    ->assertTrue(valid_phone_number('se', '+46 8 123 456 78'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '08-123 456 78'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '0123-456 78'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '031-3224562'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '0737234264'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '073-5647829'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '19740609-7845'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '19811116-7845'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('se', '20010913-7598'), t('Test valid'));
}