]> git.mxchange.org Git - shipsimu.git/blobdiff - tests/ConfigTest.php
A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / tests / ConfigTest.php
index 4681f2fb3828302649e03a988e7744da442baeb3..7c70e61b7987f4a426f35c0a0d7cff1584bdfda3 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+print (basename(__FILE__).": Init...\n");
+
 // Change directory
 @chdir("..");
 
@@ -6,10 +8,10 @@
 require(dirname(dirname(__FILE__)) . '/inc/config.php');
 
 // Load all include files
-require(PATH . 'inc/includes.php');
+require($cfg->readConfig('base_path') . 'inc/includes.php');
 
 // Load all game classes
-require(PATH . 'inc/classes.php');
+require($cfg->readConfig('base_path') . 'inc/classes.php');
 
 // Set default application
 FrameworkConfiguration::getInstance()->setConfigEntry('default_application', 'ship-simu');
@@ -20,14 +22,16 @@ define('TEST_MODE', true);
 // Load the PHPUnit framework
 require_once('PHPUnit/Framework.php');
 
+print (basename(__FILE__).": Init completed.\n\n");
+
 /**
  * A test case for the configuration sub system
  *
- * @author             Roland Haeder <webmaster@mxchange.org>
+ * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.ship-simu.org
  * @see                        http://www.phpunit.de
  *
  * This program is free software: you can redistribute it and/or modify