1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix FILTER_VALIDATE_URL not supporting IDNs

This commit is contained in:
Jordi Boggiano 2012-11-05 15:39:43 +01:00
parent e05391dc44
commit cbd91b5952
5 changed files with 31 additions and 18 deletions

View file

@ -60,7 +60,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
),
array(
'name' => 'Bob',
'homepage' => 'http://example.com',
'homepage' => '',
),
),
'support' => array(
@ -243,7 +243,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
'homepage' => 'foo:bar',
),
array(
'homepage : invalid value, must be a valid http/https URL'
'homepage : invalid value, must be an http/https URL'
)
),
array(
@ -257,10 +257,10 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
),
),
array(
'support.source : invalid value, must be a valid http/https URL',
'support.forum : invalid value, must be a valid http/https URL',
'support.issues : invalid value, must be a valid http/https URL',
'support.wiki : invalid value, must be a valid http/https URL',
'support.source : invalid value, must be an http/https URL',
'support.forum : invalid value, must be an http/https URL',
'support.issues : invalid value, must be an http/https URL',
'support.wiki : invalid value, must be an http/https URL',
)
),
);