@@ -91,7 +91,7 @@ public function testValidRelativeUrl($url)
91
91
public function getValidRelativeUrls ()
92
92
{
93
93
return [
94
- ['//google .com ' ],
94
+ ['//example .com ' ],
95
95
['//symfony.fake/blog/ ' ],
96
96
['//symfony.com/search?type=&q=url+validator ' ],
97
97
];
@@ -101,11 +101,11 @@ public function getValidUrls()
101
101
{
102
102
return [
103
103
['http://a.pl ' ],
104
- ['http://www.google .com ' ],
105
- ['http://www.google .com. ' ],
106
- ['http://www.google .museum ' ],
107
- ['https://google .com/ ' ],
108
- ['https://google .com:80/ ' ],
104
+ ['http://www.example .com ' ],
105
+ ['http://www.example .com. ' ],
106
+ ['http://www.example .museum ' ],
107
+ ['https://example .com/ ' ],
108
+ ['https://example .com:80/ ' ],
109
109
['http://www.example.coop/ ' ],
110
110
['http://www.test-example.com/ ' ],
111
111
['http://www.symfony.com/ ' ],
@@ -166,11 +166,11 @@ public function getValidUrls()
166
166
public function getValidUrlsWithWhitespaces ()
167
167
{
168
168
return [
169
- ["\x20http://www.google .com " ],
170
- ["\x09\x09http://www.google .com. " ],
169
+ ["\x20http://www.example .com " ],
170
+ ["\x09\x09http://www.example .com. " ],
171
171
["http://symfony.fake/blog/ \x0A" ],
172
172
["http://symfony.com/search?type=&q=url+validator \x0D\x0D" ],
173
- ["\x00https://google .com:80 \x00" ],
173
+ ["\x00https://example .com:80 \x00" ],
174
174
[
"\x0B\x0Bhttp://username:[email protected] \x0B\x0B" ],
175
175
];
176
176
}
@@ -214,10 +214,10 @@ public function testInvalidRelativeUrl($url)
214
214
public function getInvalidRelativeUrls ()
215
215
{
216
216
return [
217
- ['/google .com ' ],
218
- ['//goog_le .com ' ],
219
- ['//google .com::aa ' ],
220
- ['//google .com:aa ' ],
217
+ ['/example .com ' ],
218
+ ['//examp_le .com ' ],
219
+ ['//example .com::aa ' ],
220
+ ['//example .com:aa ' ],
221
221
['//127.0.0.1:aa/ ' ],
222
222
['//[::1 ' ],
223
223
['//hello.☎/ ' ],
@@ -235,15 +235,15 @@ public function getInvalidRelativeUrls()
235
235
public function getInvalidUrls ()
236
236
{
237
237
return [
238
- ['google .com ' ],
239
- ['://google .com ' ],
240
- ['http ://google .com ' ],
241
- ['http:/google .com ' ],
242
- ['http://goog_le .com ' ],
243
- ['http://google .com::aa ' ],
244
- ['http://google .com:aa ' ],
245
- ['ftp://google .fr ' ],
246
- ['faked://google .fr ' ],
238
+ ['example .com ' ],
239
+ ['://example .com ' ],
240
+ ['http ://example .com ' ],
241
+ ['http:/example .com ' ],
242
+ ['http://examp_le .com ' ],
243
+ ['http://example .com::aa ' ],
244
+ ['http://example .com:aa ' ],
245
+ ['ftp://example .fr ' ],
246
+ ['faked://example .fr ' ],
247
247
['http://127.0.0.1:aa/ ' ],
248
248
['ftp://[::1]/ ' ],
249
249
['http://[::1 ' ],
@@ -276,7 +276,7 @@ public function testCustomProtocolIsValid($url)
276
276
public function getValidCustomUrls ()
277
277
{
278
278
return [
279
- ['ftp://google .com ' ],
279
+ ['ftp://example .com ' ],
280
280
['file://127.0.0.1 ' ],
281
281
['git://[::1]/ ' ],
282
282
];
0 commit comments