summaryrefslogtreecommitdiff
path: root/tests/Unit/Middleware/CallableHandlerTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-06 12:29:58 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-06 12:29:58 +0100
commit867d720f150dc5a728a092f8d66d8b1c1a5efc5a (patch)
tree633d4e4fcb86bac3b3618346608408ad667f1ad6 /tests/Unit/Middleware/CallableHandlerTest.php
parent109f112131fd13b5b7c7f26bc9413071dad566f1 (diff)
Tests: Replaced setMethods as it is deprecated
Diffstat (limited to 'tests/Unit/Middleware/CallableHandlerTest.php')
-rw-r--r--tests/Unit/Middleware/CallableHandlerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Unit/Middleware/CallableHandlerTest.php b/tests/Unit/Middleware/CallableHandlerTest.php
index d59be60d..7721aadf 100644
--- a/tests/Unit/Middleware/CallableHandlerTest.php
+++ b/tests/Unit/Middleware/CallableHandlerTest.php
@@ -132,7 +132,7 @@ class CallableHandlerTest extends TestCase
$response = $this->createMock(Response::class);
/** @var callable|MockObject $callable */
$callable = $this->getMockBuilder(stdClass::class)
- ->setMethods(['__invoke'])
+ ->addMethods(['__invoke'])
->getMock();
return [$request, $response, $callable, $handler];
}