@@ -46,8 +46,8 @@ public static function assertJsonMatchesSchema($schema, $content)
46
46
$ validator ->check ($ content , $ schema );
47
47
48
48
$ message = '- Property: %s, Contraint: %s, Message: %s ' ;
49
- $ messages = array_map (function ($ e ) use ($ message ) {
50
- return sprintf ($ message , $ e ['property ' ], $ e ['constraint ' ], $ e ['message ' ]);
49
+ $ messages = array_map (function ($ exception ) use ($ message ) {
50
+ return sprintf ($ message , $ exception ['property ' ], $ exception ['constraint ' ], $ exception ['message ' ]);
51
51
}, $ validator ->getErrors ());
52
52
$ messages [] = '- Response: ' .json_encode ($ content );
53
53
@@ -76,7 +76,8 @@ public static function assertJsonMatchesSchemaString($schema, $content)
76
76
* static::assertJsonValueEquals(33, 'foo.bar[0]', $json);
77
77
*
78
78
* @param mixed $expected Expected value
79
- * @param string $expression Expression to retrieve the result (e.g. locations[?state == 'WA'].name | sort(@) | {WashingtonCities: join(', ', @)})
79
+ * @param string $expression Expression to retrieve the result
80
+ * (e.g. locations[?state == 'WA'].name | sort(@))
80
81
* @param array|object $json JSON Content
81
82
*/
82
83
public static function assertJsonValueEquals ($ expected , $ expression , $ json )
0 commit comments