From 29e5e9c68bfa8af85afc1077059ca5064a038a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 27 Sep 2023 21:51:34 +0200 Subject: [PATCH] use new interface of TestCase --- tests/OAuth/GoogleOAuthTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);