summaryrefslogtreecommitdiff
path: root/tests/Unit/Middleware/DispatcherTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Middleware/DispatcherTest.php')
-rw-r--r--tests/Unit/Middleware/DispatcherTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Middleware/DispatcherTest.php b/tests/Unit/Middleware/DispatcherTest.php
index 6a6d9113..347d2071 100644
--- a/tests/Unit/Middleware/DispatcherTest.php
+++ b/tests/Unit/Middleware/DispatcherTest.php
@@ -49,7 +49,7 @@ class DispatcherTest extends TestCase
/** @var Dispatcher|MockObject $dispatcher */
$dispatcher = $this->getMockBuilder(Dispatcher::class)
- ->setMethods(['handle'])
+ ->onlyMethods(['handle'])
->getMock();
$dispatcher->expects($this->once())
@@ -158,7 +158,7 @@ class DispatcherTest extends TestCase
/** @var Dispatcher|MockObject $dispatcher */
$dispatcher = $this->getMockBuilder(Dispatcher::class)
->setConstructorArgs([[MiddlewareInterface::class, MiddlewareInterface::class]])
- ->setMethods(['resolveMiddleware'])
+ ->onlyMethods(['resolveMiddleware'])
->getMock();
$dispatcher->expects($this->exactly(2))