You are here

public function RUPhoneNumberTestCase::testPhoneRUValid in Phone 6

Same name and namespace in other branches
  1. 7 tests/phone.ru.test \RUPhoneNumberTestCase::testPhoneRUValid()

File

tests/phone-ru.test, line 16

Class

RUPhoneNumberTestCase

Code

public function testPhoneRUValid() {
  $this
    ->assertTrue(valid_phone_number('ru', '+7(916)9985670'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('ru', '8-912-268-5440'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('ru', '8905148-3339'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('ru', '8(913)448-51-90'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('ru', '903-345-34-34'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('ru', '903-34-334-34'), t('Test valid'));
  $this
    ->assertTrue(valid_phone_number('ru', '903-34-33434'), t('Test valid '));
}