setContent() 공개 메소드

Overrides and sets the content of the response
public setContent ( string $content ) : void
$content string The response content
리턴 void
 /**
  * @test
  */
 public function toStringReturnsContentOfResponse()
 {
     $response = new Response();
     $response->setContent('SomeContent');
     $expected = 'SomeContent';
     $actual = $response->__toString();
     $this->assertEquals($expected, $actual);
 }