123456789101112131415161718192021222324252627 |
- <?php
- class EGPhoneNumberTestCase extends DrupalWebTestCase {
- /**
- * Implementation of getInfo()
- *
- */
- public static function getInfo() {
- return array(
- 'name' => t('Egypt Phone number test'),
- 'description' => t('Tests various valid and invalid Egypt phone numbers for validity'),
- 'group' => t('Phone')
- );
- }
- public function testPhoneEGValid() {
- //$this->assertTrue(valid_phone_number('eg', '04 476 0000'), t('Test valid'));
- }
- public function testPhoneEGInvalid() {
- //$this->assertFalse(valid_phone_number('eg', '021 3012 3456'), t('Test invalid '));
- }
- public function testPhoneEGFormatting() {
- //$this->assertEqual(format_phone_number('eg', '+6421123456', null), '+64 21 123 456', t('Check international mobile format'));
- }
- }
|