예제 #1
0
 public final function setStatusAndTitle(StatusCode $status)
 {
     $this->setTitle($status->getReasonPhrase());
     $this->setStatus($status);
 }
예제 #2
0
 public function testCreateFromResponse()
 {
     $response = new Response();
     $statusCode = StatusCode::createFromResponse($response);
     $this->assertSame('200 OK', (string) $statusCode);
 }