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