summaryrefslogtreecommitdiff
path: root/tests/Unit/Exceptions/HandlerTest.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/Exceptions/HandlerTest.php
parent109f112131fd13b5b7c7f26bc9413071dad566f1 (diff)
Tests: Replaced setMethods as it is deprecated
Diffstat (limited to 'tests/Unit/Exceptions/HandlerTest.php')
-rw-r--r--tests/Unit/Exceptions/HandlerTest.php4
1 files changed, 2 insertions, 2 deletions
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');