X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/28d7e11e4fb377fc91e3271d424310f3ca7c7b85..3a8ddf736edf4d2fc1d772179600417adc357bbb:/test/php/Nominatim/DebugTest.php?ds=sidebyside diff --git a/test/php/Nominatim/DebugTest.php b/test/php/Nominatim/DebugTest.php index 9db7557e..dbce890f 100644 --- a/test/php/Nominatim/DebugTest.php +++ b/test/php/Nominatim/DebugTest.php @@ -1,20 +1,32 @@ oWithDebuginfo = $this->getMock(Geocode::class, array('debugInfo')); + $this->oWithDebuginfo = $this->getMockBuilder(\GeococdeMock::class) + ->setMethods(array('debugInfo')) + ->getMock(); $this->oWithDebuginfo->method('debugInfo') ->willReturn(array('key1' => 'val1', 'key2' => 'val2', 'key3' => 'val3')); - $this->oWithToString = $this->getMock(Geocode::class, array('__toString')); + + $this->oWithToString = $this->getMockBuilder(\SomeMock::class) + ->setMethods(array('__toString')) + ->getMock(); $this->oWithToString->method('__toString')->willReturn('me as string'); }