public function testCreateTraceFromErrorException() { $error = $this->factory->createTrace($this->getErrorExceptionMock('foo', 'bar.php', 13)); $this->assertEquals('[]', json_encode($error)); }
/** * Handles an exception. * * @param \Exception $exception */ public function handleException(\Exception $exception) { $this->errors[] = $this->factory->createError($exception); }