X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fold%2Fcontract-test.php;h=4b205fc7936c26aa8a7448c15f0a18639fede9fd;hb=2078ef5e00b12fd44558b8d6b7eb95e4a4cee4b0;hp=607c8879dd81515ebc37e1b0f06219107f03d827;hpb=243934eb16b793ebd8cb0e43a968e17175ec5a75;p=shipsimu.git diff --git a/tests/old/contract-test.php b/tests/old/contract-test.php index 607c887..4b205fc 100644 --- a/tests/old/contract-test.php +++ b/tests/old/contract-test.php @@ -32,70 +32,70 @@ require(PATH . "application/ship-simu/loader.php"); try { $personell = SimulatorPersonell::createSimulatorPersonellByID("SimulatorPersonell@829292aeca3f6bf78c16e25fc4f75c98"); } catch (InvalidIDFormatException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (InvalidArrayCountException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (NullPointerException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (NoObjectException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (MissingMethodException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (FileIsEmptyException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (FilePointerNotOpenedException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (InvalidArrayCountException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (InvalidMD5ChecksumException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (InvalidDataLengthException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (InvalidSimulatorIDException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (MismatchingCompressorsException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (ContainerItemIsNullException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (ContainerItemIsNoArrayException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + die(sprintf("[Main:] Could not create personal list for follwing reason: %s
\n", $e->getMessage() )); } catch (ContainerMaybeDamagedException $e) { - die(sprintf("[Main:] Die Personenliste konnte nicht erstellt werden. Grund: %s
\n", + 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("Das Personal-Objekt sieht wie folgt aus:
+ DebugMiddleware::getInstance()->output(sprintf("The personal object looks like this:
%s
\n", print_r($personell, true) )); @@ -445,12 +445,12 @@ try { if ($typeValid) { DebugMiddleware::getInstance()->output(sprintf("Die Reederei %s kann Schiffe vom Typ %s bauen.
\n", $shipping->getCompanyName(), - $contract->getShipInstance()->getPartDescr() + $contract->getShipInstance()->getObjectDescription() )); } else { DebugMiddleware::getInstance()->output(sprintf("Die Reederei %s kann keine Schiffe vom Typ %s bauen!
\n", $shipping->getCompanyName(), - $contract->getShipInstance()->getPartDescr() + $contract->getShipInstance()->getObjectDescription() )); exit; } @@ -534,32 +534,32 @@ unset($totalValue); try { $shipping->signContract($contract, $shipping); } catch (NullPointerException $e) { - die(sprintf("[Main:] Die Reederei %s konnte den Bauauftrag nicht unterzeichnen. Grund: %s
\n", + die(sprintf("[Main:] The shipping company %s was not able to sign the contract for the following reason: %s
\n", $shipping->getCompanyName(), $e->getMessage() )); } catch (NoObjectException $e) { - die(sprintf("[Main:] Die Reederei %s konnte den Bauauftrag nicht unterzeichnen. Grund: %s
\n", + die(sprintf("[Main:] The shipping company %s was not able to sign the contract for the following reason: %s
\n", $shipping->getCompanyName(), $e->getMessage() )); } catch (MissingMethodException $e) { - die(sprintf("[Main:] Die Reederei %s konnte den Bauauftrag nicht unterzeichnen. Grund: %s
\n", + die(sprintf("[Main:] The shipping company %s was not able to sign the contract for the following reason: %s
\n", $shipping->getCompanyName(), $e->getMessage() )); } catch (InvalidContractPartnerException $e) { - die(sprintf("[Main:] Die Reederei %s konnte den Bauauftrag nicht unterzeichnen. Grund: %s
\n", + die(sprintf("[Main:] The shipping company %s was not able to sign the contract for the following reason: %s
\n", $shipping->getCompanyName(), $e->getMessage() )); } catch (ContractAllreadySignedException $e) { - die(sprintf("[Main:] Die Reederei %s konnte den Bauauftrag nicht unterzeichnen. Grund: %s
\n", + die(sprintf("[Main:] The shipping company %s was not able to sign the contract for the following reason: %s
\n", $shipping->getCompanyName(), $e->getMessage() )); } catch (WrongContractPartnerException $e) { - die(sprintf("[Main:] Die Reederei %s konnte den Bauauftrag nicht unterzeichnen. Grund: %s
\n", + die(sprintf("[Main:] The shipping company %s was not able to sign the contract for the following reason: %s
\n", $shipping->getCompanyName(), $e->getMessage() ));