t('Canada & US Phone number test'), 'description' => t('Tests various valid and invalid Canada & US phone numbers for validity'), 'group' => t('Phone') ); } public function testPhoneCAValid() { $this->assertTrue(valid_phone_number('ca', '1-800-555-1212'), t('Test valid')); $this->assertTrue(valid_phone_number('ca', '800-555-1212'), t('Test valid')); } public function testPhoneCAInvalid() { //$this->assertFalse(valid_phone_number('ca', '021 3012 3456'), t('Test invalid ')); } public function testPhoneCAFormatting() { //$this->assertEqual(format_phone_number('ca', '+6421123456', null), '+64 21 123 456', t('Check international mobile format')); } }