5 // Set testing mode (no starter.php will be loaded!)
6 define('TEST_MODE', true);
9 require dirname(dirname(dirname(__FILE__))) . '/framework/config.php';
11 // Load all include files
12 require $cfg->getConfigEntry('framework_base_path') . 'includes.php';
14 // Load all game classes
15 require $cfg->getConfigEntry('framework_base_path') . 'classes.php';
17 // Load file I/O handler
18 require $cfg->getConfigEntry('framework_base_path') . 'file_io.php';
20 // Load database layer
21 require $cfg->getConfigEntry('framework_base_path') . 'database.php';
23 // Set default application
24 FrameworkConfiguration::getInstance()->setConfigEntry('default_application', 'shipsimu');
25 $application = 'shipsimu';
28 require $cfg->getConfigEntry('root_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 DebugMiddleware::getInstance()->output(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 DebugMiddleware::getInstance()->output(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();