summaryrefslogtreecommitdiff
path: root/tests/Unit/Logger
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Logger')
-rw-r--r--tests/Unit/Logger/EngelsystemLoggerTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/Unit/Logger/EngelsystemLoggerTest.php b/tests/Unit/Logger/EngelsystemLoggerTest.php
index 0f4c8c32..3b67aa29 100644
--- a/tests/Unit/Logger/EngelsystemLoggerTest.php
+++ b/tests/Unit/Logger/EngelsystemLoggerTest.php
@@ -18,7 +18,9 @@ class EngelsystemLoggerTest extends ServiceProviderTest
public function testLog()
{
/** @var LogEntry|MockObject $logEntry */
- $logEntry = $this->createMock(LogEntry::class);
+ $logEntry = $this->getMockBuilder(LogEntry::class)
+ ->addMethods(['create'])
+ ->getMock();
$logEntry->expects($this->once())
->method('create')
->with(['level' => LogLevel::INFO, 'message' => 'I\'m an information!']);
@@ -48,7 +50,9 @@ class EngelsystemLoggerTest extends ServiceProviderTest
public function testInterpolate()
{
/** @var LogEntry|MockObject $logEntry */
- $logEntry = $this->createMock(LogEntry::class);
+ $logEntry = $this->getMockBuilder(LogEntry::class)
+ ->addMethods(['create'])
+ ->getMock();
$logEntry->expects($this->exactly(3))
->method('create')
->withConsecutive(