You are here

public function SGPhoneNumberTestCase::testPhoneSGInvalid in Phone 7

Same name and namespace in other branches
  1. 6 tests/phone-sg.test \SGPhoneNumberTestCase::testPhoneSGInvalid()

File

tests/phone.sg.test, line 31

Class

SGPhoneNumberTestCase

Code

public function testPhoneSGInvalid() {
  $this
    ->assertFalse(valid_phone_number('sg', '6123-4567'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('sg', '6-CALL-CPY'), t('Test invalid '));
  $this
    ->assertFalse(valid_phone_number('sg', '6123abcd'), t('Test invalid '));
}