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:
parent
e05391dc44
commit
cbd91b5952
5 changed files with 31 additions and 18 deletions
|
@ -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',
|
||||
)
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue