protected function buildMessage()
 {
     $transaction = new BankCreditTransfer('instr-001', 'e2e-001', new Money\CHF(130000), 'Muster Transport AG', new PostalAddress('Wiesenweg', '14b', '8058', 'Zürich-Flughafen'), new IBAN('CH51 0022 5225 9529 1301 C'), new BIC('UBSWCHZH80A'));
     $transaction2 = new IS1CreditTransfer('instr-002', 'e2e-002', new Money\CHF(30000), 'Finanzverwaltung Stadt Musterhausen', new PostalAddress('Altstadt', '1a', '4998', 'Muserhausen'), new PostalAccount('80-151-4'));
     $transaction3 = new IS2CreditTransfer('instr-003', 'e2e-003', new Money\CHF(20000), 'Druckerei Muster GmbH', new PostalAddress('Gartenstrasse', '61', '3000', 'Bern'), new IBAN('CH03 0900 0000 3054 1118 8'), 'Musterbank AG', new PostalAccount('80-5928-4'));
     $iban4 = new IBAN('CH51 0022 5225 9529 1301 C');
     $transaction4 = new BankCreditTransfer('instr-004', 'e2e-004', new Money\CHF(30000), 'Muster Transport AG', new PostalAddress('Wiesenweg', '14b', '8058', 'Zürich-Flughafen'), $iban4, BC::fromIBAN($iban4));
     $payment = new PaymentInformation('payment-001', 'InnoMuster AG', new BIC('ZKBKCHZZ80A'), new IBAN('CH6600700110000204481'));
     $payment->addTransaction($transaction);
     $payment->addTransaction($transaction2);
     $payment->addTransaction($transaction3);
     $payment->addTransaction($transaction4);
     $message = new CustomerCreditTransfer('message-001', 'InnoMuster AG');
     $message->addPayment($payment);
     return $message;
 }
Beispiel #2
0
 /**
  * @cover ::fromIban
  * @expectedException \InvalidArgumentException
  */
 public function testFromIBANForeign()
 {
     BC::fromIBAN(new IBAN('GB29 NWBK 6016 1331 9268 19'));
 }