/** * Test that we can use an array to remove the query parameters * * @param array $data * @dataProvider queryParamsArrayProvider */ public function testRemoveQueryFromArray(array $data) { $uri = new Uri('http://example.com/'); foreach ($data as $name => $query) { $uri->removeQueries([$name]); } $this->assertNull($uri->getQuerystring()); }