Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/windows-unittests-logger' of https://github.com/…
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 23, 2012
2 parents ce6bfa1 + 5de2a19 commit 67a1bfb
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions test/Formatter/ExceptionHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,29 @@ public function testFormat()
)
)
);
$expected = <<<EOF
2012-06-12T09:00:00+02:00 CRIT (1) test in test.php on line 1
[Trace]
File : test.php
Line : 1
Func : test
Class : Test
Type : static
Args : Array
(
[0] => 1
)
File : test.php
Line : 2
Func : test
Class : Test
Type : static
Args : Array
(
[0] => 1
)
EOF;

// The formatter ends with unix style line endings so make sure we expect that
// output as well:
$expected = "2012-06-12T09:00:00+02:00 CRIT (1) test in test.php on line 1\n";
$expected .= "[Trace]\n";
$expected .= "File : test.php\n";
$expected .= "Line : 1\n";
$expected .= "Func : test\n";
$expected .= "Class : Test\n";
$expected .= "Type : static\n";
$expected .= "Args : Array\n";
$expected .= "(\n";
$expected .= " [0] => 1\n";
$expected .= ")\n\n";
$expected .= "File : test.php\n";
$expected .= "Line : 2\n";
$expected .= "Func : test\n";
$expected .= "Class : Test\n";
$expected .= "Type : static\n";
$expected .= "Args : Array\n";
$expected .= "(\n";
$expected .= " [0] => 1\n";
$expected .= ")\n\n";

$formatter = new ExceptionHandler();
$output = $formatter->format($event);
Expand Down

0 comments on commit 67a1bfb

Please sign in to comment.