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

Commit 7c5370e

Browse files
author
Jan-Simon Winkelmann
committed
Add test for hostnames that contain only ip chars
1 parent 4e8be0e commit 7c5370e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/HostnameTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,4 +527,10 @@ public function testEqualsMessageVariables()
527527
$validator = $this->validator;
528528
$this->assertAttributeEquals($validator->getOption('messageVariables'), 'messageVariables', $validator);
529529
}
530+
531+
public function testHostnameWithOnlyIpChars()
532+
{
533+
$validator = new Hostname();
534+
$this->assertTrue($validator->isValid('cafecafe.de'));
535+
}
530536
}

0 commit comments

Comments
 (0)