phone.ph.test in Phone 7
File
tests/phone.ph.testView source
<?php
class PHPhoneNumberTestCase extends DrupalWebTestCase {
/**
* Implementation of getInfo()
*
*/
public static function getInfo() {
return array(
'name' => t('Philippine Phone number test'),
'description' => t('Tests various valid and invalid Philippine phone numbers for validity'),
'group' => t('Phone'),
);
}
public function testPhonePHValid() {
//$this->assertTrue(valid_phone_number('ph', '04 476 0000'), t('Test standard regional number 04 476 0000'));
}
public function testPhonePHInvalid() {
//$this->assertFalse(valid_phone_number('ph', '021 3012 3456'), t('Test invalid 10-digit Vodafone number in wrong range 021 3012 3456'));
}
public function testPhonePHFormatting() {
//$this->assertEqual(format_phone_number('ph', '+6421123456', null), '+64 21 123 456', t('Check international mobile format'));
}
}
Classes
Name | Description |
---|---|
PHPhoneNumberTestCase |