Skip to content

Commit 3af4f12

Browse files
committed
Add ipv6 test
1 parent 3f2c84c commit 3af4f12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/library/Pdp/ParserTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public function parseDataProvider()
153153
// Test punycode URLs
154154
array('www.xn--85x722f.xn--fiqs8s', 'xn--fiqs8s', 'xn--85x722f.xn--fiqs8s', 'www', 'www.xn--85x722f.xn--fiqs8s'),
155155
array('xn--85x722f.com.cn', 'com.cn', 'xn--85x722f.com.cn', null, 'xn--85x722f.com.cn'),
156+
// Test ipv6 URL
157+
array('http://[::1]/', null, null, null, '[::1]'),
156158
);
157159
}
158160
}

0 commit comments

Comments
 (0)