Ignore:
Timestamp:
Aug 27, 2015, 4:58:13 PM (11 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
master
Children:
db38696
Parents:
8c356c1
Message:
  • Translated more messages
    • Stripped out test externals, because they are not needed
    • Improved Setup class, to create all needed database tables
    • Smaller general improvements on the test classes
    • Extended the SetupTest extent
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/webservice/tests/SpatialiteTest.php

    r8c356c1 rb38cc03  
    2525                global $testconfig;
    2626
     27                $file = __DIR__ ."/testconfig/testconfig.php";
     28                self::assertFileExists($file);
     29                require($file);
     30                require_once($testconfig["webserviceDirectory"] ."/SiWeather/Webservice/WebserviceConfig.php");
     31                self::$_webserviceConfig = new SiWeather\Webservice\WebserviceConfig();
     32                self::assertNotNull(self::$_webserviceConfig);
     33               
    2734                self::$_databaseFile = tempnam(sys_get_temp_dir(), "siw");
    2835                # PDO SQlite is not able to load extensions (caused by the sqlite pdo driver)
    2936                # therefore we use PHP SQlite module
    3037                self::$_database = new SQLite3(self::$_databaseFile);
    31                
    32                 $file = __DIR__ ."/testconfig/testconfig.php";
    33                 self::assertFileExists($file);
    34                 require($file);
    35                 require_once($testconfig["webserviceDirectory"] ."/SiWeather/Webservice/WebserviceConfig.php");
    36                
    37                 self::$_webserviceConfig = new SiWeather\Webservice\WebserviceConfig();
    38                 self::assertNotNull(self::$_webserviceConfig);
    3938        }
    4039       
Note: See TracChangeset for help on using the changeset viewer.