@@ -137,13 +137,13 @@ public function testJsonSerialization()
137
137
$ expected = '{"bank":"ABN","account":"62.90.64.393","transactions":[], ' .
138
138
'"startPrice":16250,"endPrice":6250,"startTimestamp":123,"endTimestamp":0,"number":"2665487AAF"} ' ;
139
139
$ params = [
140
- 'bank ' => 'ABN ' ,
141
- 'account ' => '62.90.64.393 ' ,
142
- 'transactions ' => [],
143
- 'startPrice ' => 16250 ,
144
- 'endPrice ' => 6250 ,
145
- 'startTimestamp ' => 123 ,
146
- 'number ' => '2665487AAF ' ,
140
+ 'bank ' => 'ABN ' ,
141
+ 'account ' => '62.90.64.393 ' ,
142
+ 'transactions ' => [],
143
+ 'startPrice ' => 16250 ,
144
+ 'endPrice ' => 6250 ,
145
+ 'startTimestamp ' => 123 ,
146
+ 'number ' => '2665487AAF ' ,
147
147
];
148
148
$ statement = new Statement ();
149
149
foreach ($ params as $ key => $ value ) {
@@ -159,39 +159,39 @@ public function testJsonSerialization()
159
159
public function testJsonSerializationWithTransactions ()
160
160
{
161
161
$ expected = '{"bank":"ABN","account":"62.90.64.393","transactions":[{"account":"123123","accountName": ' .
162
- '"Kingsquare BV","price":110,"debitcredit":"D","description":"test","valueTimestamp":1231,"entryTimestamp" ' .
163
- ':1234,"transactionCode":"13G"},{"account":"123123","accountName":"Kingsquare BV","price":110,"debitcredit" ' .
164
- ':"D","description":"test","valueTimestamp":1231,"entryTimestamp":1234,"transactionCode":"13G"}], ' .
165
- '"startPrice":16250,"endPrice":6250,"number":"2665487AAF"} ' ;
162
+ '"Kingsquare BV","price":110,"debitcredit":"D","description":"test","valueTimestamp":1231,"entryTimestamp" ' .
163
+ ':1234,"transactionCode":"13G"},{"account":"123123","accountName":"Kingsquare BV","price":110,"debitcredit" ' .
164
+ ':"D","description":"test","valueTimestamp":1231,"entryTimestamp":1234,"transactionCode":"13G"}], ' .
165
+ '"startPrice":16250,"endPrice":6250,"number":"2665487AAF"} ' ;
166
166
$ params = [
167
- 'bank ' => 'ABN ' ,
168
- 'account ' => '62.90.64.393 ' ,
169
- 'transactions ' => [
170
- [
171
- 'account ' => '123123 ' ,
172
- 'accountName ' => 'Kingsquare BV ' ,
173
- 'price ' => 110.0 ,
174
- 'debitcredit ' => Transaction::DEBIT ,
175
- 'description ' => 'test ' ,
176
- 'valueTimestamp ' => 1231 ,
177
- 'entryTimestamp ' => 1234 ,
178
- 'transactionCode ' => '13G ' ,
179
- ],
180
- [
181
- 'account ' => '123123 ' ,
182
- 'accountName ' => 'Kingsquare BV ' ,
183
- 'price ' => 110.0 ,
184
- 'debitcredit ' => Transaction::DEBIT ,
185
- 'description ' => 'test ' ,
186
- 'valueTimestamp ' => 1231 ,
187
- 'entryTimestamp ' => 1234 ,
188
- 'transactionCode ' => '13G ' ,
189
- ],
167
+ 'bank ' => 'ABN ' ,
168
+ 'account ' => '62.90.64.393 ' ,
169
+ 'transactions ' => [
170
+ [
171
+ 'account ' => '123123 ' ,
172
+ 'accountName ' => 'Kingsquare BV ' ,
173
+ 'price ' => 110.0 ,
174
+ 'debitcredit ' => Transaction::DEBIT ,
175
+ 'description ' => 'test ' ,
176
+ 'valueTimestamp ' => 1231 ,
177
+ 'entryTimestamp ' => 1234 ,
178
+ 'transactionCode ' => '13G ' ,
190
179
],
191
- 'startPrice ' => 16250 ,
192
- 'endPrice ' => 6250 ,
193
- 'timestamp ' => 123 ,
194
- 'number ' => '2665487AAF ' ,
180
+ [
181
+ 'account ' => '123123 ' ,
182
+ 'accountName ' => 'Kingsquare BV ' ,
183
+ 'price ' => 110.0 ,
184
+ 'debitcredit ' => Transaction::DEBIT ,
185
+ 'description ' => 'test ' ,
186
+ 'valueTimestamp ' => 1231 ,
187
+ 'entryTimestamp ' => 1234 ,
188
+ 'transactionCode ' => '13G ' ,
189
+ ],
190
+ ],
191
+ 'startPrice ' => 16250 ,
192
+ 'endPrice ' => 6250 ,
193
+ 'timestamp ' => 123 ,
194
+ 'number ' => '2665487AAF ' ,
195
195
];
196
196
$ statement = new Statement ();
197
197
foreach ($ params as $ key => $ value ) {
0 commit comments