X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=tests%2Fold%2Floader-test.php;fp=tests%2Fold%2Floader-test.php;h=0000000000000000000000000000000000000000;hp=0f415eec40935ee26b2aaeef9220e6024bb488d6;hb=a8aae18024cbd98944a060b9122339a4bcb2b119;hpb=ae8e18a05aac5146cfd992090deac2e78d47fc05
diff --git a/tests/old/loader-test.php b/tests/old/loader-test.php
deleted file mode 100644
index 0f415eec40..0000000000
--- a/tests/old/loader-test.php
+++ /dev/null
@@ -1,170 +0,0 @@
-setConfigEntry("default_application", "ship-simu");
-$application = "ship-simu";
-
-// Load more includes
-require(PATH . "application/ship-simu/loader.php");
-
-// Wir tun hier so, als waere schon das Reederei-Objekt generiert und wir wollen
-// jetzt die Personalliste wiederherstellen
-try {
- $personell = SimulatorPersonell::createSimulatorPersonellByID("SimulatorPersonell@829292aeca3f6bf78c16e25fc4f75c98");
-} catch (InvalidIDFormatException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (InvalidArrayCountException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (NullPointerException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (NoObjectException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (MissingMethodException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (FileIsEmptyException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (FilePointerNotOpenedException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (InvalidArrayCountException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (InvalidMD5ChecksumException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (InvalidDataLengthException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (InvalidSimulatorIDException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (MismatchingCompressorsException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (ContainerItemIsNullException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (ContainerItemIsNoArrayException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-} catch (ContainerMaybeDamagedException $e) {
- die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n",
- $e->getMessage()
- ));
-}
-
-// Personal-Objekt debuggen
-if (defined('DEBUG_PERSONELL_OBJ')) {
- DebugMiddleware::getInstance()->output(sprintf("The personal object looks like this:
-
%s\n", - print_r($personell, true) - )); -} - -// Erstmal bis hier hin -exit(); - -// Etwas zum Testen... -try { - $personell = SimulatorPersonell::createSimulatorPersonell(20); -} catch (NullPointerException $e) { - die(sprintf("[Main:] Personal list not created for following reason: %s
%s\n", - print_r($personell, true) - )); -} - -// Try to save the object (for testing purposes) -try { - $personell->saveObjectToDatabase(); -} catch (NullPointerException $e) { - die(sprintf("[Main:] Object not saved for following reason: %s