summaryrefslogtreecommitdiffstats
path: root/tests/Monolog/Formatter/ChromePHPFormatterTest.php
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2016-05-20 20:55:31 +0100
committerJordi Boggiano <j.boggiano@seld.be>2016-05-20 20:55:31 +0100
commite27225dc402bfdcfabc336832110256f9b6de5ab (patch)
tree70e676f1559c791f935ddf48974384ae84c25153 /tests/Monolog/Formatter/ChromePHPFormatterTest.php
parent6d2cfa63c9d7c03abd1284c2c4e8a9b310cd5062 (diff)
downloadmonolog-e27225dc402bfdcfabc336832110256f9b6de5ab.zip
monolog-e27225dc402bfdcfabc336832110256f9b6de5ab.tar.gz
monolog-e27225dc402bfdcfabc336832110256f9b6de5ab.tar.bz2
Switch to DateTimeImmutable everywhere
Diffstat (limited to 'tests/Monolog/Formatter/ChromePHPFormatterTest.php')
-rw-r--r--tests/Monolog/Formatter/ChromePHPFormatterTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Monolog/Formatter/ChromePHPFormatterTest.php b/tests/Monolog/Formatter/ChromePHPFormatterTest.php
index 71c4204..50a6d03 100644
--- a/tests/Monolog/Formatter/ChromePHPFormatterTest.php
+++ b/tests/Monolog/Formatter/ChromePHPFormatterTest.php
@@ -26,7 +26,7 @@ class ChromePHPFormatterTest extends \PHPUnit_Framework_TestCase
'level_name' => 'ERROR',
'channel' => 'meh',
'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
+ 'datetime' => new \DateTimeImmutable("@0"),
'extra' => array('ip' => '127.0.0.1'),
'message' => 'log',
);
@@ -59,7 +59,7 @@ class ChromePHPFormatterTest extends \PHPUnit_Framework_TestCase
'level_name' => 'CRITICAL',
'channel' => 'meh',
'context' => array('from' => 'logger'),
- 'datetime' => new \DateTime("@0"),
+ 'datetime' => new \DateTimeImmutable("@0"),
'extra' => array('ip' => '127.0.0.1', 'file' => 'test', 'line' => 14),
'message' => 'log',
);
@@ -92,7 +92,7 @@ class ChromePHPFormatterTest extends \PHPUnit_Framework_TestCase
'level_name' => 'DEBUG',
'channel' => 'meh',
'context' => array(),
- 'datetime' => new \DateTime("@0"),
+ 'datetime' => new \DateTimeImmutable("@0"),
'extra' => array(),
'message' => 'log',
);
@@ -122,7 +122,7 @@ class ChromePHPFormatterTest extends \PHPUnit_Framework_TestCase
'level_name' => 'INFO',
'channel' => 'meh',
'context' => array(),
- 'datetime' => new \DateTime("@0"),
+ 'datetime' => new \DateTimeImmutable("@0"),
'extra' => array(),
'message' => 'log',
),
@@ -131,7 +131,7 @@ class ChromePHPFormatterTest extends \PHPUnit_Framework_TestCase
'level_name' => 'WARNING',
'channel' => 'foo',
'context' => array(),
- 'datetime' => new \DateTime("@0"),
+ 'datetime' => new \DateTimeImmutable("@0"),
'extra' => array(),
'message' => 'log2',
),