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