ParameterParser: getSet default value doesnt have to be part of the set

This commit is contained in:
marc tobias
2018-03-06 14:53:23 +01:00
parent 3ef4c4fbe7
commit 7fd46dcee9

View File

@@ -128,7 +128,6 @@ class ParameterParserTest extends \PHPUnit_Framework_TestCase
]);
$this->assertSame(false, $oParams->getSet('non-exists', ['foo', 'bar']));
// FIXME: unclear if the default value has to be part of the set
$this->assertSame('default', $oParams->getSet('non-exists', ['foo', 'bar'], 'default'));
$this->assertSame('foo', $oParams->getSet('val1', ['foo', 'bar']));