Completed
Push — master ( 925561...110c68 )
by Adrien
11:10
created
test/Unit/Camt052/EndToEndTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     protected function getV1Message(): Message
20 20
     {
21 21
         $dom = new DOMDocument('1.0', 'UTF-8');
22
-        $dom->load(__DIR__.'/Stubs/camt052.v1.xml');
22
+        $dom->load(__DIR__ . '/Stubs/camt052.v1.xml');
23 23
 
24 24
         return (new MessageFormat\V01)->getDecoder()->decode($dom);
25 25
     }
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     protected function getV2Message(): Message
28 28
     {
29 29
         $dom = new DOMDocument('1.0', 'UTF-8');
30
-        $dom->load(__DIR__.'/Stubs/camt052.v2.xml');
30
+        $dom->load(__DIR__ . '/Stubs/camt052.v2.xml');
31 31
 
32 32
         return (new MessageFormat\V02)->getDecoder()->decode($dom);
33 33
     }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     protected function getV2OtherAccountMessage(): Message
36 36
     {
37 37
         $dom = new DOMDocument('1.0', 'UTF-8');
38
-        $dom->load(__DIR__.'/Stubs/camt052.v2.other-account.xml');
38
+        $dom->load(__DIR__ . '/Stubs/camt052.v2.other-account.xml');
39 39
 
40 40
         return (new MessageFormat\V02)->getDecoder()->decode($dom);
41 41
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     protected function getV4Message(): Message
44 44
     {
45 45
         $dom = new DOMDocument('1.0', 'UTF-8');
46
-        $dom->load(__DIR__.'/Stubs/camt052.v4.xml');
46
+        $dom->load(__DIR__ . '/Stubs/camt052.v4.xml');
47 47
 
48 48
         return (new MessageFormat\V04)->getDecoder()->decode($dom);
49 49
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     protected function getV6Message(): Message
52 52
     {
53 53
         $dom = new DOMDocument('1.0', 'UTF-8');
54
-        $dom->load(__DIR__.'/Stubs/camt052.v6.xml');
54
+        $dom->load(__DIR__ . '/Stubs/camt052.v6.xml');
55 55
 
56 56
         return (new MessageFormat\V06())->getDecoder()->decode($dom);
57 57
     }
@@ -232,12 +232,12 @@  discard block
 block discarded – undo
232 232
                                 $this->assertEquals('Company Name', $party->getRelatedPartyType()->getName());
233 233
                                 $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry());
234 234
                                 $this->assertEquals([], $party->getRelatedPartyType()->getAddress()->getAddressLines());
235
-                                $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification());
235
+                                $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification());
236 236
                             } elseif ($party->getRelatedPartyType() instanceof DTO\Debtor) {
237 237
                                 $this->assertEquals('NAME NAME', $party->getRelatedPartyType()->getName());
238 238
                                 $this->assertEquals('NL', $party->getRelatedPartyType()->getAddress()->getCountry());
239 239
                                 $this->assertEquals(['ADDR ADDR 10', '2000 ANTWERPEN'], $party->getRelatedPartyType()->getAddress()->getAddressLines());
240
-                                $this->assertEquals('NL56AGDH9619008421', (string)$party->getAccount()->getIdentification());
240
+                                $this->assertEquals('NL56AGDH9619008421', (string) $party->getAccount()->getIdentification());
241 241
                             }
242 242
                         }
243 243
                     }
Please login to merge, or discard this patch.