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

Fix license validation and add feedback of values to ease reading

This commit is contained in:
Jordi Boggiano 2012-11-05 20:04:29 +01:00
parent cbd91b5952
commit bb685d9c7f
2 changed files with 21 additions and 17 deletions

View file

@ -208,7 +208,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
'name' => 'foo',
),
array(
'name : invalid value, must match [A-Za-z0-9][A-Za-z0-9_.-]*/[A-Za-z0-9][A-Za-z0-9_.-]*'
'name : invalid value (foo), must match [A-Za-z0-9][A-Za-z0-9_.-]*/[A-Za-z0-9][A-Za-z0-9_.-]*'
)
),
array(
@ -243,7 +243,7 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
'homepage' => 'foo:bar',
),
array(
'homepage : invalid value, must be an http/https URL'
'homepage : invalid value (foo:bar), must be an http/https URL'
)
),
array(
@ -257,10 +257,10 @@ class ValidatingArrayLoaderTest extends \PHPUnit_Framework_TestCase
),
),
array(
'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',
'support.source : invalid value (foo:bar), must be an http/https URL',
'support.forum : invalid value (foo:bar), must be an http/https URL',
'support.issues : invalid value (foo:bar), must be an http/https URL',
'support.wiki : invalid value (foo:bar), must be an http/https URL',
)
),
);