Skip to content

Commit

Permalink
Merge pull request #5 from golincode/master
Browse files Browse the repository at this point in the history
Merge from master
  • Loading branch information
tedslittlerobot authored Jul 5, 2016
2 parents 792b4ce + 2a40353 commit b7a1d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Processors/ExceptionInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function exceptionInformation(Exception $e)
'exception' => get_class($e),
'file' => $e->getFile(),
'line' => $e->getLine(),
'trace' => $this->trace($e),
'trace' => json_encode($this->trace($e), JSON_PRETTY_PRINT),
];

if ($previous = $e->getPrevious()) {
Expand Down
8 changes: 2 additions & 6 deletions tests/ExceptionInformationProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ public function testBasicException()
$this->assertEquals($expected['exception'], $actual['exception']);
$this->assertEquals($expected['file'], $actual['file']);
$this->assertEquals($expected['line'], $actual['line']);
$this->assertEquals([
'file' => null,
'line' => null,
'class' => __CLASS__,
'function' => 'testBasicException',
], $actual['trace'][0]);

$this->assertTrue(is_string($actual['trace']));
}

public function testRecursiveException()
Expand Down

0 comments on commit b7a1d56

Please sign in to comment.