Skip to content

Commit

Permalink
test(isPhone): 增加更多测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Mar 29, 2024
1 parent 87195c0 commit e0e880e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/IsPhoneTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public static function providerForPhone()
['416-981-0001'],
['4001234567'],
['1-877-777-1420'],
['+852 12312323'],
];
}

Expand All @@ -56,6 +57,9 @@ public static function providerForNotPhone()
['1-877-777-1420 x117'],
['++123234'],
['1233456+'],
// auto fill course invalid value
['+852 +852 12312323'],
['+852 +85212312323'],
];
}
}

0 comments on commit e0e880e

Please sign in to comment.