You are here

public function ESPhoneNumberTestCase::testPhoneESValid in Phone 7

Same name and namespace in other branches
  1. 6 tests/phone-es.test \ESPhoneNumberTestCase::testPhoneESValid()

File

tests/phone.es.test, line 16

Class

ESPhoneNumberTestCase

Code

public function testPhoneESValid() {
  $this
    ->assertTrue(valid_phone_number('es', '972367087'), t('Test valid - 972367087'));
  $this
    ->assertTrue(valid_phone_number('es', '97-3770866'), t('Test valid - 97-3770866'));
  $this
    ->assertTrue(valid_phone_number('es', '972-377086'), t('Test valid - 972-377086'));
}