X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f3c557bf684a0079e4bc54b622cc5d766f3a6b56..c221e1fd56be892ca13b5a87e248d47d47996cd2:/test/php/Nominatim/ParameterParserTest.php diff --git a/test/php/Nominatim/ParameterParserTest.php b/test/php/Nominatim/ParameterParserTest.php index 7381bdf8..82716d4d 100644 --- a/test/php/Nominatim/ParameterParserTest.php +++ b/test/php/Nominatim/ParameterParserTest.php @@ -137,9 +137,6 @@ class ParameterParserTest extends \PHPUnit\Framework\TestCase public function testGetSet() { - $this->expectException(\Exception::class); - $this->expectExceptionMessage("Parameter 'val3' must be one of: foo, bar"); - $oParams = new ParameterParser(array( 'val1' => 'foo', 'val2' => '', @@ -151,7 +148,7 @@ class ParameterParserTest extends \PHPUnit\Framework\TestCase $this->assertSame('foo', $oParams->getSet('val1', array('foo', 'bar'))); $this->assertSame(false, $oParams->getSet('val2', array('foo', 'bar'))); - $oParams->getSet('val3', array('foo', 'bar')); + $this->assertSame(false, $oParams->getSet('val3', array('foo', 'bar'))); }