Skip to content

Commit 805d4da

Browse files
committed
Update json-schema exception message comparisons
Fixes issues introduced with jsonrainbow/json-schema#170
1 parent 836f311 commit 805d4da

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/PhpUnit/GuzzleAssertsTraitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function testAssertResponseBodyDoesNotMatch()
5959
self::assertEquals(
6060
<<<EOF
6161
Failed asserting that [{"id":123456789}] is valid.
62-
[0] the property name is required
62+
[name] The property name is required
6363
6464
EOF
6565
,
@@ -100,7 +100,7 @@ public function testAssertResponseHeaderDoesNotMatch()
100100
self::assertEquals(
101101
<<<EOF
102102
Failed asserting that {"Content-Type":"application\/json"} is valid.
103-
[] the property ETag is required
103+
[ETag] The property ETag is required
104104
105105
EOF
106106
,

tests/PhpUnit/ResponseBodyConstraintTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testInvalidSchema()
6767
self::assertEquals(
6868
<<<EOF
6969
Failed asserting that [{"id":123456789}] is valid.
70-
[0] the property name is required
70+
[name] The property name is required
7171
7272
EOF
7373
,

tests/PhpUnit/ResponseHeadersConstraintTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testInvalidHeaderType()
5858
self::assertEquals(
5959
<<<EOF
6060
Failed asserting that {"Content-Type":"application\/json"} is valid.
61-
[] the property ETag is required
61+
[ETag] The property ETag is required
6262
6363
EOF
6464
,

0 commit comments

Comments
 (0)