Neos\Flow\Mvc\Response::__toString PHP Метод

__toString() публичный Метод

Returns the content of the response.
public __toString ( ) : string
Результат string
    public function __toString()
    {
        return $this->getContent();
    }

Usage Example

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