public function testGetSetMethod() { $r = new Request('GET', 'http://whatever'); $this->assertEquals('POST', $r->setMethod('POST')->getMethod()); }