public function __construct(HttpMethod $method, $route, array $problems, $previous = null) { parent::__construct(HttpStatusCode::BAD_REQUEST(), $method, $route, $previous); $this->problems = $problems; }
public function __construct(HttpMethod $method, $route, $previous = null) { parent::__construct(HttpStatusCode::NOT_FOUND(), $method, $route, $previous); }
public function __construct(HttpMethod $method, $route) { parent::__construct(HttpStatusCode::METHOD_NOT_ALLOWED(), $method, $route); }
public function testAccessors() { $status = HttpStatusCode::NOT_FOUND(); $this->assertSame(404, $status->code); $this->assertSame('Not Found', $status->text); }