public function testIsServerError() { $e = new StatusCodeException('foo', 500); $this->assertFalse($e->isInformational()); $this->assertFalse($e->isSuccessful()); $this->assertFalse($e->isRedirection()); $this->assertFalse($e->isClientError()); $this->assertTrue($e->isServerError()); }
public function __construct($statusCode, $location = null) { parent::__construct('Redirect exception', $statusCode); $this->location = $location; }