Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Commit

Permalink
Another fix for PHP 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hough committed Apr 24, 2013
1 parent 6af47ee commit 4a07972
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/php/ehough/epilog/formatter/LineFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,18 @@ public function testDefFormatWithException()

public function testDefFormatWithPreviousException()
{
if (version_compare(PHP_VERSION, '5.3') < 0) {

$this->markTestSkipped('PHP 5.2');
return;
}
$formatter = new ehough_epilog_formatter_LineFormatter(null, 'Y-m-d');
$previous = new LogicException('Wut?');
$message = $formatter->format(array(
'level_name' => 'CRITICAL',
'channel' => 'core',
'context' => array('exception' => new RuntimeException('Foo', 0, $previous)),
'datetime' => new DateTime('@' . time()),
'datetime' => new DateTime,
'extra' => array(),
'message' => 'foobar',
));
Expand Down

0 comments on commit 4a07972

Please sign in to comment.