withStatus() публичный Метод

public withStatus ( $code, $reasonPhrase = null )
 public function testErrorResponsePreservesResponseReasonPhraseIfStatusCodeMatchesExceptionCode()
 {
     $this->response = $this->response->withStatus(500, 'It broke!');
     $response = call_user_func($this->final, $this->request, $this->response, new \Exception('foo', 500));
     $this->assertSame($this->response->getReasonPhrase(), $response->getReasonPhrase());
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function withStatus($header, $reasonPhrase = null)
 {
     return new self($this->app, parent::withStatus($header, $reasonPhrase));
 }