/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The GET request parameter "foo" does not exist. */ public function testRemoveGetParameterWithInvalidName() { $this->request->removeGetParameter('foo'); }