Skip to content

Commit 7cc03b1

Browse files
committed
test external, protocol rel URL not processed #22
1 parent c25b897 commit 7cc03b1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/HTMLProcessorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ public function internalLinkProvider() {
6767
'http://someotherdomain.com',
6868
true,
6969
],
70+
'external FQU, protocol relative' => [
71+
'//example.com/category/travel/photos/001.jpg',
72+
'',
73+
false,
74+
],
75+
'external FQU with matching domain as 2nd arg' => [
76+
'http://someotherdomain.com/category/travel/photos/001.jpg',
77+
'http://someotherdomain.com',
78+
true,
79+
],
7080
'not external FQU' => [
7181
'http://someothersite.com/category/travel/photos/001.jpg',
7282
'',

0 commit comments

Comments
 (0)