Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tests

  • Loading branch information...
commit dd0b216e0229a24178c2f0782f8a7172c7ed1c96 1 parent 8fcb833
@Seldaek authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 tests/Monolog/Formatter/LineFormatterTest.php
View
8 tests/Monolog/Formatter/LineFormatterTest.php
@@ -102,13 +102,9 @@ public function testDefFormatWithException()
'message' => 'foobar',
));
- if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
- $path = json_encode(__FILE__, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
- } else {
- $path = json_encode(__FILE__);
- }
+ $path = str_replace('\\/', '/', json_encode(__FILE__));
- $this->assertEquals('['.date('Y-m-d').'] core.CRITICAL: foobar {"exception":"[object] (RuntimeException: Foo at '.substr($path, 1, -1).':'.(__LINE__-12).')"} []'."\n", $message);
+ $this->assertEquals('['.date('Y-m-d').'] core.CRITICAL: foobar {"exception":"[object] (RuntimeException: Foo at '.substr($path, 1, -1).':'.(__LINE__-8).')"} []'."\n", $message);
}
public function testBatchFormat()
Please sign in to comment.
Something went wrong with that request. Please try again.