appendContent() public method

Appends content to the already existing content.
public appendContent ( string $content ) : Response
$content string More response content
return Response This response, for method chaining
 /**
  * @test
  */
 public function contentCanBeSetAppendedAndRetrieved()
 {
     $response = new Response();
     $response->setContent('Two households, both alike in dignity, ');
     $response->appendContent('In fair Verona, where we lay our scene');
     $this->assertEquals('Two households, both alike in dignity, In fair Verona, where we lay our scene', $response->getContent());
     $response->setContent('For never was a story of more woe, Than this of Juliet and her Romeo.');
     $this->assertEquals('For never was a story of more woe, Than this of Juliet and her Romeo.', $response->getContent());
     $this->assertEquals('For never was a story of more woe, Than this of Juliet and her Romeo.', (string) $response);
 }