@@ -445,6 +445,9 @@ public function testRefreshTokenSetsValues()
445445 ->will ($ this ->returnValue ($ token ));
446446 if ($ this ->isGuzzle5 ()) {
447447 $ response = $ this ->getMock ('GuzzleHttp\Message\ResponseInterface ' );
448+ $ response ->expects ($ this ->once ())
449+ ->method ('getStatusCode ' )
450+ ->will ($ this ->returnValue (200 ));
448451 } else {
449452 $ response = $ this ->getMock ('Psr\Http\Message\ResponseInterface ' );
450453 }
@@ -486,6 +489,9 @@ public function testRefreshTokenIsSetOnRefresh()
486489 ->will ($ this ->returnValue ($ token ));
487490 if ($ this ->isGuzzle5 ()) {
488491 $ response = $ this ->getMock ('GuzzleHttp\Message\ResponseInterface ' );
492+ $ response ->expects ($ this ->once ())
493+ ->method ('getStatusCode ' )
494+ ->will ($ this ->returnValue (200 ));
489495 } else {
490496 $ response = $ this ->getMock ('Psr\Http\Message\ResponseInterface ' );
491497 }
@@ -528,6 +534,9 @@ public function testRefreshTokenIsNotSetWhenNewRefreshTokenIsReturned()
528534 ->will ($ this ->returnValue ($ token ));
529535 if ($ this ->isGuzzle5 ()) {
530536 $ response = $ this ->getMock ('GuzzleHttp\Message\ResponseInterface ' );
537+ $ response ->expects ($ this ->once ())
538+ ->method ('getStatusCode ' )
539+ ->will ($ this ->returnValue (200 ));
531540 } else {
532541 $ response = $ this ->getMock ('Psr\Http\Message\ResponseInterface ' );
533542 }
0 commit comments