ZendTest\Stratigility\Http\ResponseTest::testCannotMutateResponseAfterCallingEnd PHP Method

testCannotMutateResponseAfterCallingEnd() public method

public testCannotMutateResponseAfterCallingEnd ( $mutateMethod, $mutateMethodArgs )
    public function testCannotMutateResponseAfterCallingEnd($mutateMethod, $mutateMethodArgs)
    {
        $response = $this->response->withStatus(201);
        $response = $response->write("First\n");
        $response = $response->end('DONE');
        call_user_func_array([$response, $mutateMethod], $mutateMethodArgs);
    }