- Timestamp:
- Sep 1, 2015, 7:29:54 PM (11 years ago)
- Branches:
- master
- Children:
- ff873dc
- Parents:
- d55ec21
- Location:
- src/webservice
- Files:
-
- 3 edited
-
config/config.php.in (modified) (1 diff)
-
tests/StationsTest.php (modified) (2 diffs)
-
tests/bootstrap.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/webservice/config/config.php.in
rd55ec21 r256102b 21 21 $config = [ 22 22 "mode" => "@WEBSERVICE_MODE@", 23 "webserviceBaseUrl" => "http:// localhost@WEBSERVICE_BASE_URL@",23 "webserviceBaseUrl" => "http://@WEBSERVICE_SERVER_HOST@:@WEBSERVICE_SERVER_PORT@@WEBSERVICE_BASE_URL@", 24 24 "spatialiteExtension" => "mod_spatialite.so", 25 25 "geonamesUsername" => "@WEBSERVICE_GEONAMES_USERNAME@", -
src/webservice/tests/StationsTest.php
rd55ec21 r256102b 23 23 class StationsTest extends PHPUnit_Framework_TestCase 24 24 { 25 protected function setUp() 26 { 25 protected function setUp(){ 27 26 $file = __DIR__ ."/testconfig/testconfig.php"; 28 27 $this->assertFileExists($file); … … 43 42 $this->assertTrue(TestHelpers\TestSetup::wipeDataDirectory()); 44 43 $this->assertTrue(TestHelpers\TestSetup::databaseSetup()); 45 }44 } 46 45 47 protected function tearDown(){46 protected function tearDown(){ 48 47 if(file_exists($this->_dataDirectory)) 49 48 $this->assertTrue(TestHelpers\TestSetup::wipeDataDirectory()); 50 }49 } 51 50 52 51 public function testEmptyStations() -
src/webservice/tests/bootstrap.php
rd55ec21 r256102b 23 23 // Command that starts the built-in web server 24 24 $command = sprintf( 25 'php -S %s:%d -t %s >/ dev/null2>&1 & echo $!',26 WEB _SERVER_HOST,27 WEB _SERVER_PORT,28 WEB _SERVER_DOCROOT25 'php -S %s:%d -t %s >/tmp/php-dev-server.log 2>&1 & echo $!', 26 WEBSERVICE_SERVER_HOST, 27 WEBSERVICE_SERVER_PORT, 28 WEBSERVICE_SERVER_DOCROOT 29 29 ); 30 30 … … 37 37 '%s - Web server started on %s:%d with PID %d', 38 38 date('r'), 39 WEB _SERVER_HOST,40 WEB _SERVER_PORT,39 WEBSERVICE_SERVER_HOST, 40 WEBSERVICE_SERVER_PORT, 41 41 $pid 42 42 ) . PHP_EOL;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/siweather/chrome/site/your_project_logo.png)