Skip to content

Commit

Permalink
Test payments with unusual minor units
Browse files Browse the repository at this point in the history
  • Loading branch information
z38 committed Mar 25, 2018
1 parent 5aae58a commit 317655d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ protected function buildMessage()
$transaction7 = new ForeignCreditTransfer(
'instr-007',
'e2e-007',
new Money\GBP(30000), // GBP 300.00
'United Development Brazil Ltda.',
new UnstructuredPostalAddress('Rua do Castelino, 1650', '41610-480 Salvador-BA', 'BR'),
new Money\KWD(300001), // KWD 300.001
'United Development Kuwait',
new UnstructuredPostalAddress('P.O. Box 23954 Safat', '13100 Kuwait', 'KW'),
new IBAN('BR97 0036 0305 0000 1000 9795 493P 1'),
new FinancialInstitutionAddress('Caixa Economica Federal', new UnstructuredPostalAddress('Rua Sao Valentim, 620', '03446-040 Sao Paulo-SP', 'BR'))
);
Expand Down Expand Up @@ -200,7 +200,7 @@ public function testGroupHeader()
$this->assertEquals('12', $nbOfTxs);

$ctrlSum = $xpath->evaluate('string(//pain001:GrpHdr/pain001:CtrlSum)');
$this->assertEquals('4210.00', $ctrlSum);
$this->assertEquals('4210.001', $ctrlSum);
}

public function testSchemaValidation()
Expand Down

0 comments on commit 317655d

Please sign in to comment.