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