public function testFromText() { $response = new Response(); $response->fromText("Hello World"); $this->assertContains('Content-Type: text/plain', (string) $response); }