@@ -327,7 +327,7 @@ public function testInvalidBatchRequest($request) {
327327 foreach ($ response as $ result ) {
328328 $ this ->isError ($ result );
329329 $ this ->assertNull ($ result ['id ' ]);
330- $ this ->assertSame (-32600 , $ result ['error ' ]['code ' ]);
330+ $ this ->assertSame (-32604 , $ result ['error ' ]['code ' ]); // <-- Previously 'Invalid request' -32600
331331 }
332332 }
333333
@@ -347,7 +347,7 @@ public function testRequestWithMissingParameters() {
347347 $ this ->assertIsArray ($ response );
348348 $ this ->isError ($ response );
349349 $ this ->hasValidJSONRPCIdentifier ($ request , $ response );
350- $ this ->assertSame (-32602 , $ response ['error ' ]['code ' ]);
350+ $ this ->assertSame (-32604 , $ response ['error ' ]['code ' ]); // <-- Previously 'Invalid params' -32602
351351 }
352352
353353 /**
@@ -385,7 +385,7 @@ public function testRequestWithInvalidParameters($parameters) {
385385 $ this ->assertIsArray ($ response );
386386 $ this ->isError ($ response );
387387 $ this ->hasValidJSONRPCIdentifier ($ request , $ response );
388- $ this ->assertSame (-32602 , $ response ['error ' ]['code ' ]);
388+ $ this ->assertSame (-32604 , $ response ['error ' ]['code ' ]); // <-- Previously 'Invalid params' -32602
389389 }
390390
391391 /**
@@ -406,7 +406,7 @@ public function testRequestWithMissingApiKey() {
406406 $ this ->assertIsArray ($ response );
407407 $ this ->isError ($ response );
408408 $ this ->hasValidJSONRPCIdentifier ($ request , $ response );
409- $ this ->assertSame (-32099 , $ response ['error ' ]['code ' ]);
409+ $ this ->assertSame (-32604 , $ response ['error ' ]['code ' ]); // <-- Previously 'System error' -32099
410410 }
411411
412412 /**
@@ -449,7 +449,7 @@ public function testRequestWithInvalidApiKeys($apiKey) {
449449 $ this ->assertIsArray ($ response );
450450 $ this ->isError ($ response );
451451 $ this ->hasValidJSONRPCIdentifier ($ request , $ response );
452- $ this ->assertSame (-32099 , $ response ['error ' ]['code ' ]);
452+ $ this ->assertSame (-32604 , $ response ['error ' ]['code ' ]); // <-- Previously 'System error' -32099
453453 }
454454
455455 /**
0 commit comments