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

Commit c8c703d

Browse files
Add test for hostname with empty domain part
1 parent fd3d550 commit c8c703d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/HostnameTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,4 +647,11 @@ public function testValidBizHostname()
647647
$validator = new Hostname();
648648
$this->assertTrue($validator->isValid('google.biz'));
649649
}
650+
651+
652+
public function testHostnameWithEmptyDomainPart()
653+
{
654+
$validator = new Hostname();
655+
$this->assertFalse($validator->isValid('.com'));
656+
}
650657
}

0 commit comments

Comments
 (0)