@@ -510,9 +510,9 @@ public function test403WithEmptyMessageRaisesToopherRequestException()
510510 * @expectedException ToopherRequestException
511511 * @expectedExceptionMessage JSON Parsing Error: Syntax error, malformed JSON
512512 */
513- public function test200WithEmptyMessageRaisesToopherRequestException ()
513+ public function test403WithBadJsonRaisesToopherRequestException ()
514514 {
515- $ resp = new HTTP_Request2_Response ('HTTP/1.1 200 OK ' , false , 'https://api.toopher.com/v1/authentication_requests/1 ' );
515+ $ resp = new HTTP_Request2_Response ('HTTP/1.1 403 Forbidden ' , false , 'https://api.toopher.com/v1/authentication_requests/1 ' );
516516 $ resp ->appendBody ('stuff ' );
517517 $ this ->mock ->addResponse ($ resp );
518518 $ toopher = $ this ->getToopherApi ($ this ->mock );
@@ -523,9 +523,9 @@ public function test200WithEmptyMessageRaisesToopherRequestException()
523523 * @expectedException ToopherRequestException
524524 * @expectedExceptionMessage JSON Parsing Error: Syntax error, malformed JSON
525525 */
526- public function test403WithBadJsonRaisesToopherRequestException ()
526+ public function test200WithEmptyMessageRaisesToopherRequestException ()
527527 {
528- $ resp = new HTTP_Request2_Response ('HTTP/1.1 403 Forbidden ' , false , 'https://api.toopher.com/v1/authentication_requests/1 ' );
528+ $ resp = new HTTP_Request2_Response ('HTTP/1.1 200 OK ' , false , 'https://api.toopher.com/v1/authentication_requests/1 ' );
529529 $ resp ->appendBody ('stuff ' );
530530 $ this ->mock ->addResponse ($ resp );
531531 $ toopher = $ this ->getToopherApi ($ this ->mock );
0 commit comments