phone.ph.test 885 B

123456789101112131415161718192021222324252627
  1. <?php
  2. class PHPhoneNumberTestCase extends DrupalWebTestCase {
  3. /**
  4. * Implementation of getInfo()
  5. *
  6. */
  7. public static function getInfo() {
  8. return array(
  9. 'name' => t('Philippine Phone number test'),
  10. 'description' => t('Tests various valid and invalid Philippine phone numbers for validity'),
  11. 'group' => t('Phone')
  12. );
  13. }
  14. public function testPhonePHValid() {
  15. //$this->assertTrue(valid_phone_number('ph', '04 476 0000'), t('Test standard regional number 04 476 0000'));
  16. }
  17. public function testPhonePHInvalid() {
  18. //$this->assertFalse(valid_phone_number('ph', '021 3012 3456'), t('Test invalid 10-digit Vodafone number in wrong range 021 3012 3456'));
  19. }
  20. public function testPhonePHFormatting() {
  21. //$this->assertEqual(format_phone_number('ph', '+6421123456', null), '+64 21 123 456', t('Check international mobile format'));
  22. }
  23. }