Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 39bd051

Browse files
committed
Merge branch 'feature/186' into develop
Close #186
2 parents 2868a94 + 0aae5d6 commit 39bd051

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/HostnameTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,4 +635,16 @@ public function testHostnameWithOnlyIpChars()
635635
$validator = new Hostname();
636636
$this->assertTrue($validator->isValid('cafecafe.de'));
637637
}
638+
639+
public function testValidCnHostname()
640+
{
641+
$validator = new Hostname();
642+
$this->assertTrue($validator->isValid('google.cn'));
643+
}
644+
645+
public function testValidBizHostname()
646+
{
647+
$validator = new Hostname();
648+
$this->assertTrue($validator->isValid('google.biz'));
649+
}
638650
}

0 commit comments

Comments
 (0)