Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6637957

Browse files
committedJul 28, 2014
Adds additional IPv6 tests
1 parent db785b7 commit 6637957

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎tests/library/Pdp/ParserTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ public function parseDataProvider()
155155
array('xn--85x722f.com.cn', 'com.cn', 'xn--85x722f.com.cn', null, 'xn--85x722f.com.cn'),
156156
// Test ipv6 URL
157157
array('http://[::1]/', null, null, null, '[::1]'),
158+
array('http://[2001:db8:85a3:8d3:1319:8a2e:370:7348]/', null, null, null, '[2001:db8:85a3:8d3:1319:8a2e:370:7348]'),
159+
array('https://[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443/', null, null, null, '[2001:db8:85a3:8d3:1319:8a2e:370:7348]'),
160+
// Link-local addresses and zone indices
161+
array('http://[fe80::3%25eth0]', null, null, null, '[fe80::3%25eth0]'),
162+
array('http://[fe80::1%2511]', null, null, null, '[fe80::1%2511]'),
158163
);
159164
}
160165
}

0 commit comments

Comments
 (0)
Please sign in to comment.