public function testToArray()
 {
     $exception = new Exception();
     $exported = $exception->__toArray();
     foreach (['type', 'message', 'code', 'class', 'method', 'file-name', 'file-line', 'file-diff', 'attributes', 'traceable'] as $key) {
         $this->assertArrayHasKey($key, $exported);
     }
     $this->assertSame($exception->getTrace(), $exported['traceable']());
 }