unit tests for ParameterParser::hasSetAny

This commit is contained in:
marc tobias
2020-02-19 16:55:17 +01:00
parent d35a0b392e
commit 7fd9d0eeef
2 changed files with 21 additions and 3 deletions

View File

@@ -119,10 +119,10 @@ class ParameterParser
return $aLangPrefOrder;
}
public function hasSetAny($aParams)
public function hasSetAny($aParamNames)
{
foreach ($aParams as $sParam) {
if ($this->getBool($sParam)) {
foreach ($aParamNames as $sName) {
if ($this->getBool($sName)) {
return true;
}
}