public function cleanParametersURL() { $url = 'http://host/glpi/path/to/file.php?var1=2&var2=3'; $expected = 'http://host/glpi/path/to/file.php'; $this->assertEquals($expected, Html::cleanParametersURL($url)); }