summaryrefslogtreecommitdiffstats
path: root/tests/Monolog/Formatter/FluentdFormatterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Monolog/Formatter/FluentdFormatterTest.php')
-rw-r--r--tests/Monolog/Formatter/FluentdFormatterTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Monolog/Formatter/FluentdFormatterTest.php b/tests/Monolog/Formatter/FluentdFormatterTest.php
index 622b2ba..0be8d8f 100644
--- a/tests/Monolog/Formatter/FluentdFormatterTest.php
+++ b/tests/Monolog/Formatter/FluentdFormatterTest.php
@@ -1,4 +1,4 @@
-<?php
+<?php declare(strict_types=1);
/*
* This file is part of the Monolog package.
@@ -12,7 +12,7 @@
namespace Monolog\Formatter;
use Monolog\Logger;
-use Monolog\TestCase;
+use Monolog\Test\TestCase;
class FluentdFormatterTest extends TestCase
{
@@ -36,7 +36,7 @@ class FluentdFormatterTest extends TestCase
public function testFormat()
{
$record = $this->getRecord(Logger::WARNING);
- $record['datetime'] = new \DateTime("@0");
+ $record['datetime'] = new \DateTimeImmutable("@0");
$formatter = new FluentdFormatter();
$this->assertEquals(
@@ -51,7 +51,7 @@ class FluentdFormatterTest extends TestCase
public function testFormatWithTag()
{
$record = $this->getRecord(Logger::ERROR);
- $record['datetime'] = new \DateTime("@0");
+ $record['datetime'] = new \DateTimeImmutable("@0");
$formatter = new FluentdFormatter(true);
$this->assertEquals(