1
0
Fork 0

fix for changes in justinrainbow/json-schema 1.4.4

pull/4264/head
Remi Collet 2015-07-16 09:20:36 +02:00 committed by Rob Bast
parent c014e0882f
commit 9b9cbfe111
2 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@
}, },
"require": { "require": {
"php": ">=5.3.2", "php": ">=5.3.2",
"justinrainbow/json-schema": "~1.4", "justinrainbow/json-schema": "^1.4.4",
"composer/spdx-licenses": "~1.0", "composer/spdx-licenses": "~1.0",
"seld/jsonlint": "~1.0", "seld/jsonlint": "~1.0",
"symfony/console": "~2.5", "symfony/console": "~2.5",

View File

@ -23,18 +23,18 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
{ {
$json = '{ }'; $json = '{ }';
$this->assertEquals(array( $this->assertEquals(array(
array('property' => '', 'message' => 'the property name is required'), array('property' => 'name', 'message' => 'The property name is required'),
array('property' => '', 'message' => 'the property description is required'), array('property' => 'description', 'message' => 'The property description is required'),
), $this->check($json)); ), $this->check($json));
$json = '{ "name": "vendor/package" }'; $json = '{ "name": "vendor/package" }';
$this->assertEquals(array( $this->assertEquals(array(
array('property' => '', 'message' => 'the property description is required'), array('property' => 'description', 'message' => 'The property description is required'),
), $this->check($json)); ), $this->check($json));
$json = '{ "description": "generic description" }'; $json = '{ "description": "generic description" }';
$this->assertEquals(array( $this->assertEquals(array(
array('property' => '', 'message' => 'the property name is required'), array('property' => 'name', 'message' => 'The property name is required'),
), $this->check($json)); ), $this->check($json));
} }
@ -44,7 +44,7 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array( $this->assertEquals(array(
array( array(
'property' => 'minimum-stability', 'property' => 'minimum-stability',
'message' => 'does not match the regex pattern ^dev|alpha|beta|rc|RC|stable$' 'message' => 'Does not match the regex pattern ^dev|alpha|beta|rc|RC|stable$'
), ),
), $this->check($json), 'empty string'); ), $this->check($json), 'empty string');
@ -52,7 +52,7 @@ class ComposerSchemaTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array( $this->assertEquals(array(
array( array(
'property' => 'minimum-stability', 'property' => 'minimum-stability',
'message' => 'does not match the regex pattern ^dev|alpha|beta|rc|RC|stable$' 'message' => 'Does not match the regex pattern ^dev|alpha|beta|rc|RC|stable$'
), ),
), $this->check($json), 'dummy'); ), $this->check($json), 'dummy');