public function testMagicToString() { $response = new Response('foo', 304, array('foo' => 'bar'), array('foo' => array('value' => 'bar'))); $this->assertEquals("foo: bar\nSet-Cookie: foo=bar\n\nfoo", $response->__toString(), '->__toString() returns the headers and the content as a string'); }