X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/67996929e080b64e1a2282196d90f2d8b008c31a..558c42ec83a5a01e238af2fa4faa6a992af3f77a:/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'))); }