File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
class IdVNTest extends TestCase
19
19
{
20
- public function testValidId ()
20
+ public function testValid ()
21
21
{
22
22
$ rule = new IdVN ();
23
23
$ id = '025479661 ' ;
@@ -32,7 +32,7 @@ public function testValidId()
32
32
$ this ->assertEquals ($ id , array_shift ($ validId ));
33
33
}
34
34
35
- public function testInvalidIp ()
35
+ public function testInvalid ()
36
36
{
37
37
$ rule = new IdVN ();
38
38
$ id = '025479661123123123123 ' ;
Original file line number Diff line number Diff line change 17
17
*/
18
18
class IpVNTest extends TestCase
19
19
{
20
- public function testValidCases ()
20
+ public function testValid ()
21
21
{
22
22
$ rule = new IpVN ();
23
23
$ ruleV4 = new IpVN (IpVN::IPV4 );
@@ -45,7 +45,7 @@ public function testValidCases()
45
45
$ this ->assertEquals ($ ipv6 , $ validIps ['ipv6 ' ]);
46
46
}
47
47
48
- public function testInvalidCases ()
48
+ public function testInvalid ()
49
49
{
50
50
$ rule = new IpVN ();
51
51
$ ip = '113.173.134.203@ ' ;
Original file line number Diff line number Diff line change 17
17
*/
18
18
class LandLineVNTest extends TestCase
19
19
{
20
- public function testValidId ()
20
+ public function testValid ()
21
21
{
22
22
$ rule = new LandLineVN ();
23
23
$ landLine = '02838574955 ' ;
@@ -32,7 +32,7 @@ public function testValidId()
32
32
$ this ->assertEquals ($ landLine , array_shift ($ validLandLine ));
33
33
}
34
34
35
- public function testInvalidIp ()
35
+ public function testInvalid ()
36
36
{
37
37
$ rule = new LandLineVN ();
38
38
$ landLine = '02838574955!@# ' ;
Original file line number Diff line number Diff line change 17
17
*/
18
18
class MobileVNTest extends TestCase
19
19
{
20
- public function testValidId ()
20
+ public function testValid ()
21
21
{
22
22
$ rule = new MobileVN ();
23
23
$ mobile = '0909113911 ' ;
@@ -32,7 +32,7 @@ public function testValidId()
32
32
$ this ->assertEquals ($ mobile , array_shift ($ validMobile ));
33
33
}
34
34
35
- public function testInvalidIp ()
35
+ public function testInvalid ()
36
36
{
37
37
$ rule = new MobileVN ();
38
38
$ mobile = '0909113911!@# ' ;
You can’t perform that action at this time.
0 commit comments