]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #994 from mtmail/bugfix-when-calling-debug-printDebugArray
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 27 Mar 2018 07:04:59 +0000 (09:04 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Mar 2018 07:04:59 +0000 (09:04 +0200)
fix -undefined offset- error

settings/phrase_settings.php
test/php/Nominatim/LibTest.php [moved from test/php/Nominatim/NominatimTest.php with 98% similarity]
utils/importWikipedia.php

index cee7028ba384e6a4196fe397288352dcda39d457..945235bd8c9549e90b320a8ff3d0c1107632946c 100644 (file)
@@ -9,7 +9,7 @@ $aTagsBlacklist
     'place' => array('house', 'houses'),
    );
 
-// If a class is in the white list then all types will 
+// If a class is in the white list then all types will
 // be ignored except the ones given in the list.
 // Also use this list to exclude an entire class from
 // special phrases.
similarity index 98%
rename from test/php/Nominatim/NominatimTest.php
rename to test/php/Nominatim/LibTest.php
index ed738c3773046a1739b138273131ad67c3ac76c3..ee6f94f237e83e0c09a66c760b6e476437b2c482 100644 (file)
@@ -4,15 +4,8 @@ namespace Nominatim;
 
 require_once '../../lib/lib.php';
 
-class NominatimTest extends \PHPUnit_Framework_TestCase
+class LibTest extends \PHPUnit_Framework_TestCase
 {
-
-
-    protected function setUp()
-    {
-    }
-
-
     public function testGetClassTypesWithImportance()
     {
         $aClasses = getClassTypesWithImportance();
index 90477b81e742857ab84a945f55e505ea8af8b780..b767adb36ff2774ea8b208adcc670c5866de65fa 100755 (executable)
@@ -37,7 +37,7 @@ $sTestPageText = <<<EOD
 | coasters = 12
 | water_rides = 2
 | owner = [[Six Flags]]
-| general_manager = 
+| general_manager =
 | homepage = [http://www.sixflags.com/parks/greatadventure/ Six Flags Great Adventure]
 }}
 EOD;