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/Exceptions/HandlerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/Unit/Exceptions') diff --git a/tests/Unit/Exceptions/HandlerTest.php b/tests/Unit/Exceptions/HandlerTest.php index baf2de82..494afd31 100644 --- a/tests/Unit/Exceptions/HandlerTest.php +++ b/tests/Unit/Exceptions/HandlerTest.php @@ -33,7 +33,7 @@ class HandlerTest extends TestCase { /** @var Handler|MockObject $handler */ $handler = $this->getMockBuilder(Handler::class) - ->setMethods(['exceptionHandler']) + ->onlyMethods(['exceptionHandler']) ->getMock(); $handler->expects($this->once()) @@ -65,7 +65,7 @@ class HandlerTest extends TestCase /** @var Handler|MockObject $handler */ $handler = $this->getMockBuilder(Handler::class) - ->setMethods(['terminateApplicationImmediately']) + ->onlyMethods(['terminateApplicationImmediately']) ->getMock(); $handler->expects($this->once()) ->method('terminateApplicationImmediately'); -- cgit v1.2.3-54-g00ecf