Neos\Flow\Tests\Unit\Http\ResponseTest::contentCanBeSetAppendedAndRetrieved PHP Method

contentCanBeSetAppendedAndRetrieved() public method

    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);
    }
ResponseTest