Quellcode durchsuchen

Fix 5.3/5.4 builds

Jordi Boggiano vor 6 Jahren
Ursprung
Commit
f97cc755af
1 geänderte Dateien mit 10 neuen und 2 gelöschten Zeilen
  1. 10 2
      tests/Monolog/Formatter/NormalizerFormatterTest.php

+ 10 - 2
tests/Monolog/Formatter/NormalizerFormatterTest.php

@@ -190,7 +190,11 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
 
 
         restore_error_handler();
         restore_error_handler();
 
 
-        $this->assertEquals('null', $res);
+        if (PHP_VERSION_ID < 50500) {
+            $this->assertEquals('[{"bar":{"foo":null}},{"foo":{"bar":null}}]', $res);
+        } else {
+            $this->assertEquals('null', $res);
+        }
     }
     }
 
 
     public function testCanNormalizeReferences()
     public function testCanNormalizeReferences()
@@ -223,7 +227,11 @@ class NormalizerFormatterTest extends \PHPUnit_Framework_TestCase
 
 
         restore_error_handler();
         restore_error_handler();
 
 
-        $this->assertEquals('null', $res);
+        if (PHP_VERSION_ID < 50500) {
+            $this->assertEquals('[null]', $res);
+        } else {
+            $this->assertEquals('null', $res);
+        }
     }
     }
 
 
     public function testNormalizeHandleLargeArraysWithExactly1000Items()
     public function testNormalizeHandleLargeArraysWithExactly1000Items()