diff --git a/tests/OAuth/GoogleOAuthTest.php b/tests/OAuth/GoogleOAuthTest.php index 7a04d62..d6ba7a2 100644 --- a/tests/OAuth/GoogleOAuthTest.php +++ b/tests/OAuth/GoogleOAuthTest.php @@ -16,7 +16,7 @@ final class GoogleOAuthTest extends TestCase $nonce = 'random_nonce_string'; $redirectUrl = 'http://example.com/oauth'; - $requestMock = $this->getMockBuilder(IRequest::class) + $requestMock = $this->createMock(IRequest::class) ->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send']) ->getMock(); $googleOAuth = new GoogleOAuth($requestMock); @@ -50,7 +50,7 @@ final class GoogleOAuthTest extends TestCase $requestMock = $this->getMockBuilder(IRequest::class) ->setMethods(['setUrl', 'setMethod', 'setQuery', 'setHeaders', 'send']) ->getMock(); - $responseMock = $this->getMockBuilder(IResponse::class) + $responseMock = $this->createMock(IResponse::class) ->setMethods(['getBody', 'getHeaders']) ->getMock(); $googleOAuth = new GoogleOAuth($requestMock);