Bluz\Response\Response::setReasonPhrase PHP Method

setReasonPhrase() public method

If no Reason-Phrase is specified, implementations MAY choose to default to the RFC 2616 recommended reason phrase for the response's Status-Code.
public setReasonPhrase ( string $phrase )
$phrase string the Reason-Phrase to set.
    public function setReasonPhrase($phrase)
    {
        $this->phrase = $phrase;
    }

Usage Example

Example #1
0
 /**
  * Test initial values of Response properties
  */
 public function testSetGetReasonPhrase()
 {
     $this->response->setReasonPhrase('OK');
     $this->assertEquals('OK', $this->response->getReasonPhrase());
 }