From e080789703cb973a907bc4255a54fecf6996caa0 Mon Sep 17 00:00:00 2001 From: Piotr Makowski Date: Tue, 26 Mar 2019 00:57:12 +0100 Subject: [PATCH 1/2] #dev-3.2.x: update --- composer.json | 3 ++- src/Json/JsonSchema.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7e39dd21..351b097f 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "behatch/contexts", + "name": "astinus/contexts", "description": "Behatch contexts", "keywords": ["BDD", "Behat", "Symfony2", "Context"], "type": "library", @@ -34,6 +34,7 @@ }, "replace": { + "behatch/contexts": "self.version", "sanpi/behatch-contexts": "self.version" }, diff --git a/src/Json/JsonSchema.php b/src/Json/JsonSchema.php index ec705caf..2387872e 100644 --- a/src/Json/JsonSchema.php +++ b/src/Json/JsonSchema.php @@ -36,6 +36,7 @@ public function validate(Json $json, Validator $validator) foreach ($validator->getErrors() as $error) { $msg .= sprintf(" - [%s] %s".PHP_EOL, $error['property'], $error['message']); } + $msg .= "JSON is:".PHP_EOL.$json->encode().PHP_EOL; throw new \Exception($msg); } From b75792b76da24d98025dd038d11fd3981adae768 Mon Sep 17 00:00:00 2001 From: Piotr Makowski Date: Tue, 26 Mar 2019 14:17:59 +0100 Subject: [PATCH 2/2] #master: update --- tests/units/Json/JsonSchema.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/units/Json/JsonSchema.php b/tests/units/Json/JsonSchema.php index edab1003..ee33d7f3 100644 --- a/tests/units/Json/JsonSchema.php +++ b/tests/units/Json/JsonSchema.php @@ -44,6 +44,12 @@ public function test_validate_invalid() ->hasMessage(<<