You are here

public function BRPhoneNumberTestCase::testPhoneBRInvalid in Phone 7

Same name and namespace in other branches
  1. 6 tests/phone-br.test \BRPhoneNumberTestCase::testPhoneBRInvalid()

File

tests/phone.br.test, line 28

Class

BRPhoneNumberTestCase

Code

public function testPhoneBRInvalid() {
  $this
    ->assertFalse(valid_phone_number('br', '123-45678'), t('Test invalid - 123-45678'));
  $this
    ->assertFalse(valid_phone_number('br', '(01) 5555 1234'), t('Test invalid - (01) 5555 1234'));
  $this
    ->assertFalse(valid_phone_number('br', '(11) 0555.1234'), t('Test invalid - (11) 0555.1234'));
  $this
    ->assertFalse(valid_phone_number('br', '(11) 5555 abcd'), t('Test invalid - (11) 5555 abcd'));
}