From bfe5081735d8ad323b84710e0154ffda980e01d0 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 12 Jul 2015 14:05:44 +0100 Subject: [PATCH] Fix idiotic sunday --- tests/Monolog/Formatter/NormalizerFormatterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Monolog/Formatter/NormalizerFormatterTest.php b/tests/Monolog/Formatter/NormalizerFormatterTest.php index 095fb08e..16a06ffc 100644 --- a/tests/Monolog/Formatter/NormalizerFormatterTest.php +++ b/tests/Monolog/Formatter/NormalizerFormatterTest.php @@ -185,7 +185,7 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase // send an invalid unicode sequence $res = $reflMethod->invoke($formatter, array('message' => "\xB1\x31")); - if (PHP_VERSION_ID < 50500 && $res === array('message' => null)) { + if (PHP_VERSION_ID < 50500 && $res === '{"message":null}') { throw new \RuntimeException('PHP 5.3/5.4 throw a warning and null the value instead of returning false entirely'); } }