public function testExeptionGettersSetter()
 {
     $exception = new \Exception();
     $responseContainer = new ResponseModel();
     $responseContainer->setException($exception);
     $this->assertEquals($exception, $responseContainer->getException());
 }
 public function testReturnStackTraceDisabled()
 {
     $responseContainer = new ResponseModel();
     $responseContainer->setException(new \Exception('Test'));
     $responseContainer->setReturnStackTrace(false);
     $this->assertFalse($responseContainer->isReturnStackTrace());
     $data = $responseContainer->toArray();
     $this->assertArrayHasKey('error', $data);
     $this->assertArrayNotHasKey('stack_trace', $data['error']);
 }