From 867d720f150dc5a728a092f8d66d8b1c1a5efc5a Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 6 Nov 2019 12:29:58 +0100 Subject: Tests: Replaced setMethods as it is deprecated --- tests/Unit/Middleware/SendResponseHandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/Unit/Middleware/SendResponseHandlerTest.php') diff --git a/tests/Unit/Middleware/SendResponseHandlerTest.php b/tests/Unit/Middleware/SendResponseHandlerTest.php index 427cd313..9189bd6d 100644 --- a/tests/Unit/Middleware/SendResponseHandlerTest.php +++ b/tests/Unit/Middleware/SendResponseHandlerTest.php @@ -18,7 +18,7 @@ class SendResponseHandlerTest extends TestCase { /** @var SendResponseHandler|MockObject $middleware */ $middleware = $this->getMockBuilder(SendResponseHandler::class) - ->setMethods(['headersSent', 'sendHeader']) + ->onlyMethods(['headersSent', 'sendHeader']) ->getMock(); /** @var ServerRequestInterface|MockObject $request */ $request = $this->getMockForAbstractClass(ServerRequestInterface::class); -- cgit v1.2.3-70-g09d2