public function SGPhoneNumberTestCase::testPhoneSGValid in Phone 7
Same name and namespace in other branches
- 6 tests/phone-sg.test \SGPhoneNumberTestCase::testPhoneSGValid()
File
- tests/
phone.sg.test, line 16
Class
Code
public function testPhoneSGValid() {
$this
->assertTrue(valid_phone_number('sg', '61234567'), "'61234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '63829324'), "'63829324' should be valid");
$this
->assertTrue(valid_phone_number('sg', '67654321'), "'67654321' should be valid");
$this
->assertTrue(valid_phone_number('sg', '+6561234567'), "'+6561234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '+6581234567'), "'+6581234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '+6591234567'), "'+6591234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '+65 61234567'), "'+65 61234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '+65 81234567'), "'+65 81234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '+65 91234567'), "'+65 91234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '61234567'), "'61234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '81234567'), "'81234567' should be valid");
$this
->assertTrue(valid_phone_number('sg', '91234567'), "'91234567' should be valid");
}