Skip to content

Commit

Permalink
Fix 5.3/5.4 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 12, 2019
1 parent dc2895c commit f97cc75
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/Monolog/Formatter/NormalizerFormatterTest.php
Expand Up @@ -190,7 +190,11 @@ public function testIgnoresRecursiveObjectReferences()

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()
Expand Down Expand Up @@ -223,7 +227,11 @@ public function testIgnoresInvalidTypes()

restore_error_handler();

$this->assertEquals('null', $res);
if (PHP_VERSION_ID < 50500) {
$this->assertEquals('[null]', $res);
} else {
$this->assertEquals('null', $res);
}
}

public function testNormalizeHandleLargeArraysWithExactly1000Items()
Expand Down

0 comments on commit f97cc75

Please sign in to comment.