5 // Set testing mode (no starter.php will be loaded!)
6 define('TEST_MODE', true);
9 require(dirname(dirname(dirname(__FILE__))) . '/inc/config.php');
11 // Load all include files
12 require($cfg->getConfigEntry('base_path') . 'inc/includes.php');
14 // Load all game classes
15 require($cfg->getConfigEntry('base_path') . 'inc/classes.php');
17 // Load file I/O handler
18 require($cfg->getConfigEntry('base_path') . 'inc/file_io.php');
20 // Load database layer
21 require($cfg->getConfigEntry('base_path') . 'inc/database.php');
23 // Set default application
24 FrameworkConfiguration::getInstance()->setConfigEntry('default_application', 'shipsimu');
25 $application = 'shipsimu';
28 require($cfg->getConfigEntry('base_path') . 'application/shipsimu/loader.php');
30 // Wir tun hier so, als waere schon das Reederei-Objekt generiert und wir wollen
31 // jetzt die Personalliste wiederherstellen
32 $personell = SimulatorPersonell::createSimulatorPersonellByID('SimulatorPersonell@829292aeca3f6bf78c16e25fc4f75c98');
34 // Personal-Objekt debuggen
35 if (defined('DEBUG_PERSONELL_OBJ')) {
36 echo sprintf("The personal object looks like this:<br />
38 print_r($personell, true)
42 // Erstmal bis hier hin
45 // Etwas zum Testen...
46 $personell = SimulatorPersonell::createSimulatorPersonell(20);
48 // Personal-Objekt debuggen
49 if (defined('DEBUG_PERSONELL_OBJ')) {
50 echo sprintf("The personal object looks like this:<br />
52 print_r($personell, true)
56 // Try to save the object (for testing purposes)
57 $personell->saveObjectToDatabase();