Skip to content

Commit 6b7087e

Browse files
Updated test cases
1 parent 943d1a8 commit 6b7087e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/IdVNTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class IdVNTest extends TestCase
1919
{
20-
public function testValidId()
20+
public function testValid()
2121
{
2222
$rule = new IdVN();
2323
$id = '025479661';
@@ -32,7 +32,7 @@ public function testValidId()
3232
$this->assertEquals($id, array_shift($validId));
3333
}
3434

35-
public function testInvalidIp()
35+
public function testInvalid()
3636
{
3737
$rule = new IdVN();
3838
$id = '025479661123123123123';

tests/IpVNTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class IpVNTest extends TestCase
1919
{
20-
public function testValidCases()
20+
public function testValid()
2121
{
2222
$rule = new IpVN();
2323
$ruleV4 = new IpVN(IpVN::IPV4);
@@ -45,7 +45,7 @@ public function testValidCases()
4545
$this->assertEquals($ipv6, $validIps['ipv6']);
4646
}
4747

48-
public function testInvalidCases()
48+
public function testInvalid()
4949
{
5050
$rule = new IpVN();
5151
$ip = '113.173.134.203@';

tests/LandLineVNTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class LandLineVNTest extends TestCase
1919
{
20-
public function testValidId()
20+
public function testValid()
2121
{
2222
$rule = new LandLineVN();
2323
$landLine = '02838574955';
@@ -32,7 +32,7 @@ public function testValidId()
3232
$this->assertEquals($landLine, array_shift($validLandLine));
3333
}
3434

35-
public function testInvalidIp()
35+
public function testInvalid()
3636
{
3737
$rule = new LandLineVN();
3838
$landLine = '02838574955!@#';

tests/MobileVNTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class MobileVNTest extends TestCase
1919
{
20-
public function testValidId()
20+
public function testValid()
2121
{
2222
$rule = new MobileVN();
2323
$mobile = '0909113911';
@@ -32,7 +32,7 @@ public function testValidId()
3232
$this->assertEquals($mobile, array_shift($validMobile));
3333
}
3434

35-
public function testInvalidIp()
35+
public function testInvalid()
3636
{
3737
$rule = new MobileVN();
3838
$mobile = '0909113911!@#';

0 commit comments

Comments
 (0)