Neos\Flow\Mvc\Response::__toString PHP Method

__toString() public method

Returns the content of the response.
public __toString ( ) : string
return string
    public function __toString()
    {
        return $this->getContent();
    }

Usage Example

コード例 #1
0
 /**
  * @test
  */
 public function toStringReturnsContentOfResponse()
 {
     $response = new Response();
     $response->setContent('SomeContent');
     $expected = 'SomeContent';
     $actual = $response->__toString();
     $this->assertEquals($expected, $actual);
 }