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