Esempio n. 1
0
 public function __construct(HttpMethod $method, $route, array $problems, $previous = null)
 {
     parent::__construct(HttpStatusCode::BAD_REQUEST(), $method, $route, $previous);
     $this->problems = $problems;
 }
Esempio n. 2
0
 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);
 }
Esempio n. 4
0
 public function testAccessors()
 {
     $status = HttpStatusCode::NOT_FOUND();
     $this->assertSame(404, $status->code);
     $this->assertSame('Not Found', $status->text);
 }