]> git.openstreetmap.org Git - nominatim.git/commitdiff
ParameterParser: getSet default value doesnt have to be part of the set
authormarc tobias <mtmail@gmx.net>
Tue, 6 Mar 2018 13:53:23 +0000 (14:53 +0100)
committermarc tobias <mtmail@gmx.net>
Tue, 6 Mar 2018 13:53:23 +0000 (14:53 +0100)
test/php/Nominatim/ParameterParserTest.php

index 105f9d34839638ac6e7373033cd61d6eef9d8efa..4265cffbb6f068d472f3e941237e4677582cad36 100644 (file)
@@ -128,7 +128,6 @@ class ParameterParserTest extends \PHPUnit_Framework_TestCase
                                        ]);
 
         $this->assertSame(false, $oParams->getSet('non-exists', ['foo', 'bar']));
                                        ]);
 
         $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']));
 
         $this->assertSame('default', $oParams->getSet('non-exists', ['foo', 'bar'], 'default'));
         $this->assertSame('foo', $oParams->getSet('val1', ['foo', 'bar']));