diff options
| author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 12:29:58 +0100 |
|---|---|---|
| committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 12:29:58 +0100 |
| commit | 867d720f150dc5a728a092f8d66d8b1c1a5efc5a (patch) | |
| tree | 633d4e4fcb86bac3b3618346608408ad667f1ad6 /tests/Unit/Middleware/DispatcherTest.php | |
| parent | 109f112131fd13b5b7c7f26bc9413071dad566f1 (diff) | |
Tests: Replaced setMethods as it is deprecated
Diffstat (limited to 'tests/Unit/Middleware/DispatcherTest.php')
| -rw-r--r-- | tests/Unit/Middleware/DispatcherTest.php | 4 |
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)) |
