X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ccf119206d56a024f21cde36c729e4b7da4283d1..5b02cd22b9d9bdf9d3cd32d9e4cfcb971a92c606:/test/php/Nominatim/ParameterParserTest.php?ds=sidebyside 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'))); }