public function testCallingEndMultipleTimesDoesNothingAfterFirstCall() { $response = $this->response->end('foo'); $response = $response->end('bar'); $this->assertEquals('foo', (string) $response->getBody()); }