summaryrefslogtreecommitdiff
path: root/tests/Unit/Exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Exceptions')
-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');