public function testMake()
 {
     $callback = ErrorHandlerFactory::make();
     $e = new ResponseException();
     $e->setResponse($expected = range(1, 10));
     $this->assertInstanceOf('Closure', $callback);
     $this->assertEquals($expected, $callback($e));
 }
 public function testSetters()
 {
     $e = new ResponseException();
     $e->setResponse($expected = range(1, 10));
     $this->assertEquals($expected, $e->getResponse());
 }