@@ 230-242 (lines=13) @@ | ||
227 | * @return void |
|
228 | * @covers ::setDefaults |
|
229 | */ |
|
230 | public function testBankLeftAttrDefaultValues() |
|
231 | { |
|
232 | $attributes = $this->paymentSlip->getBankLeftAttr(); |
|
233 | ||
234 | $expectedAttributes = $this->defaultAttributes; |
|
235 | ||
236 | $expectedAttributes['PosX'] = 3; |
|
237 | $expectedAttributes['PosY'] = 8; |
|
238 | $expectedAttributes['Width'] = 50; |
|
239 | $expectedAttributes['Height'] = 4; |
|
240 | ||
241 | $this->assertEquals($expectedAttributes, $attributes); |
|
242 | } |
|
243 | ||
244 | /** |
|
245 | * Tests the default attributes of the right bank element |
|
@@ 250-262 (lines=13) @@ | ||
247 | * @return void |
|
248 | * @covers ::setDefaults |
|
249 | */ |
|
250 | public function testBankRightAttrDefaultValues() |
|
251 | { |
|
252 | $attributes = $this->paymentSlip->getBankRightAttr(); |
|
253 | ||
254 | $expectedAttributes = $this->defaultAttributes; |
|
255 | ||
256 | $expectedAttributes['PosX'] = 66; |
|
257 | $expectedAttributes['PosY'] = 8; |
|
258 | $expectedAttributes['Width'] = 50; |
|
259 | $expectedAttributes['Height'] = 4; |
|
260 | ||
261 | $this->assertEquals($expectedAttributes, $attributes); |
|
262 | } |
|
263 | ||
264 | /** |
|
265 | * Tests the default attributes of the left recipient element |
|
@@ 270-282 (lines=13) @@ | ||
267 | * @return void |
|
268 | * @covers ::setDefaults |
|
269 | */ |
|
270 | public function testRecipientLeftAttrDefaultValues() |
|
271 | { |
|
272 | $attributes = $this->paymentSlip->getRecipientLeftAttr(); |
|
273 | ||
274 | $expectedAttributes = $this->defaultAttributes; |
|
275 | ||
276 | $expectedAttributes['PosX'] = 3; |
|
277 | $expectedAttributes['PosY'] = 23; |
|
278 | $expectedAttributes['Width'] = 50; |
|
279 | $expectedAttributes['Height'] = 4; |
|
280 | ||
281 | $this->assertEquals($expectedAttributes, $attributes); |
|
282 | } |
|
283 | ||
284 | /** |
|
285 | * Tests the default attributes of the right recipient element |
|
@@ 290-302 (lines=13) @@ | ||
287 | * @return void |
|
288 | * @covers ::setDefaults |
|
289 | */ |
|
290 | public function testRecipientRightAttrDefaultValues() |
|
291 | { |
|
292 | $attributes = $this->paymentSlip->getRecipientRightAttr(); |
|
293 | ||
294 | $expectedAttributes = $this->defaultAttributes; |
|
295 | ||
296 | $expectedAttributes['PosX'] = 66; |
|
297 | $expectedAttributes['PosY'] = 23; |
|
298 | $expectedAttributes['Width'] = 50; |
|
299 | $expectedAttributes['Height'] = 4; |
|
300 | ||
301 | $this->assertEquals($expectedAttributes, $attributes); |
|
302 | } |
|
303 | ||
304 | /** |
|
305 | * Tests the default attributes of the left account element |
|
@@ 310-322 (lines=13) @@ | ||
307 | * @return void |
|
308 | * @covers ::setDefaults |
|
309 | */ |
|
310 | public function testAccountLeftAttrDefaultValues() |
|
311 | { |
|
312 | $attributes = $this->paymentSlip->getAccountLeftAttr(); |
|
313 | ||
314 | $expectedAttributes = $this->defaultAttributes; |
|
315 | ||
316 | $expectedAttributes['PosX'] = 27; |
|
317 | $expectedAttributes['PosY'] = 43; |
|
318 | $expectedAttributes['Width'] = 30; |
|
319 | $expectedAttributes['Height'] = 4; |
|
320 | ||
321 | $this->assertEquals($expectedAttributes, $attributes); |
|
322 | } |
|
323 | ||
324 | /** |
|
325 | * Tests the default attributes of the right account element |
|
@@ 330-342 (lines=13) @@ | ||
327 | * @return void |
|
328 | * @covers ::setDefaults |
|
329 | */ |
|
330 | public function testAccountRightAttrDefaultValues() |
|
331 | { |
|
332 | $attributes = $this->paymentSlip->getAccountRightAttr(); |
|
333 | ||
334 | $expectedAttributes = $this->defaultAttributes; |
|
335 | ||
336 | $expectedAttributes['PosX'] = 90; |
|
337 | $expectedAttributes['PosY'] = 43; |
|
338 | $expectedAttributes['Width'] = 30; |
|
339 | $expectedAttributes['Height'] = 4; |
|
340 | ||
341 | $this->assertEquals($expectedAttributes, $attributes); |
|
342 | } |
|
343 | ||
344 | /** |
|
345 | * Tests the default attributes of the left francs amount element |
|
@@ 350-363 (lines=14) @@ | ||
347 | * @return void |
|
348 | * @covers ::setDefaults |
|
349 | */ |
|
350 | public function testAmountFrancsLeftAttrDefaultValues() |
|
351 | { |
|
352 | $attributes = $this->paymentSlip->getAmountFrancsLeftAttr(); |
|
353 | ||
354 | $expectedAttributes = $this->defaultAttributes; |
|
355 | ||
356 | $expectedAttributes['PosX'] = 5; |
|
357 | $expectedAttributes['PosY'] = 50.5; |
|
358 | $expectedAttributes['Width'] = 35; |
|
359 | $expectedAttributes['Height'] = 4; |
|
360 | $expectedAttributes['TextAlign'] = 'R'; |
|
361 | ||
362 | $this->assertEquals($expectedAttributes, $attributes); |
|
363 | } |
|
364 | ||
365 | /** |
|
366 | * Tests the default attributes of the right francs amount element |
|
@@ 371-384 (lines=14) @@ | ||
368 | * @return void |
|
369 | * @covers ::setDefaults |
|
370 | */ |
|
371 | public function testAmountFrancsRightAttrDefaultValues() |
|
372 | { |
|
373 | $attributes = $this->paymentSlip->getAmountFrancsRightAttr(); |
|
374 | ||
375 | $expectedAttributes = $this->defaultAttributes; |
|
376 | ||
377 | $expectedAttributes['PosX'] = 66; |
|
378 | $expectedAttributes['PosY'] = 50.5; |
|
379 | $expectedAttributes['Width'] = 35; |
|
380 | $expectedAttributes['Height'] = 4; |
|
381 | $expectedAttributes['TextAlign'] = 'R'; |
|
382 | ||
383 | $this->assertEquals($expectedAttributes, $attributes); |
|
384 | } |
|
385 | ||
386 | /** |
|
387 | * Tests the default attributes of the left cents amount element |
|
@@ 392-404 (lines=13) @@ | ||
389 | * @return void |
|
390 | * @covers ::setDefaults |
|
391 | */ |
|
392 | public function testAmountCentsLeftAttrDefaultValues() |
|
393 | { |
|
394 | $attributes = $this->paymentSlip->getAmountCentsLeftAttr(); |
|
395 | ||
396 | $expectedAttributes = $this->defaultAttributes; |
|
397 | ||
398 | $expectedAttributes['PosX'] = 50; |
|
399 | $expectedAttributes['PosY'] = 50.5; |
|
400 | $expectedAttributes['Width'] = 6; |
|
401 | $expectedAttributes['Height'] = 4; |
|
402 | ||
403 | $this->assertEquals($expectedAttributes, $attributes); |
|
404 | } |
|
405 | ||
406 | /** |
|
407 | * Tests the default attributes of the right cents amount element |
|
@@ 412-424 (lines=13) @@ | ||
409 | * @return void |
|
410 | * @covers ::setDefaults |
|
411 | */ |
|
412 | public function testAmountCentsRightAttrDefaultValues() |
|
413 | { |
|
414 | $attributes = $this->paymentSlip->getAmountCentsRightAttr(); |
|
415 | ||
416 | $expectedAttributes = $this->defaultAttributes; |
|
417 | ||
418 | $expectedAttributes['PosX'] = 111; |
|
419 | $expectedAttributes['PosY'] = 50.5; |
|
420 | $expectedAttributes['Width'] = 6; |
|
421 | $expectedAttributes['Height'] = 4; |
|
422 | ||
423 | $this->assertEquals($expectedAttributes, $attributes); |
|
424 | } |
|
425 | ||
426 | /** |
|
427 | * Tests the default attributes of the left payer element |
|
@@ 432-444 (lines=13) @@ | ||
429 | * @return void |
|
430 | * @covers ::setDefaults |
|
431 | */ |
|
432 | public function testPayerLeftAttrDefaultValues() |
|
433 | { |
|
434 | $attributes = $this->paymentSlip->getPayerLeftAttr(); |
|
435 | ||
436 | $expectedAttributes = $this->defaultAttributes; |
|
437 | ||
438 | $expectedAttributes['PosX'] = 3; |
|
439 | $expectedAttributes['PosY'] = 65; |
|
440 | $expectedAttributes['Width'] = 50; |
|
441 | $expectedAttributes['Height'] = 4; |
|
442 | ||
443 | $this->assertEquals($expectedAttributes, $attributes); |
|
444 | } |
|
445 | ||
446 | /** |
|
447 | * Tests the default attributes of the right payer element |
|
@@ 452-464 (lines=13) @@ | ||
449 | * @return void |
|
450 | * @covers ::setDefaults |
|
451 | */ |
|
452 | public function testPayerRightAttrDefaultValues() |
|
453 | { |
|
454 | $attributes = $this->paymentSlip->getPayerRightAttr(); |
|
455 | ||
456 | $expectedAttributes = $this->defaultAttributes; |
|
457 | ||
458 | $expectedAttributes['PosX'] = 125; |
|
459 | $expectedAttributes['PosY'] = 48; |
|
460 | $expectedAttributes['Width'] = 50; |
|
461 | $expectedAttributes['Height'] = 4; |
|
462 | ||
463 | $this->assertEquals($expectedAttributes, $attributes); |
|
464 | } |
|
465 | ||
466 | /** |
|
467 | * Tests the default background |
@@ 102-115 (lines=14) @@ | ||
99 | * @return void |
|
100 | * @covers ::setDefaults |
|
101 | */ |
|
102 | public function testReferenceNumberLeftAttrDefaultValues() |
|
103 | { |
|
104 | $attributes = $this->paymentSlip->getReferenceNumberLeftAttr(); |
|
105 | ||
106 | $expectedAttributes = $this->defaultAttributes; |
|
107 | ||
108 | $expectedAttributes['PosX'] = 3; |
|
109 | $expectedAttributes['PosY'] = 60; |
|
110 | $expectedAttributes['Width'] = 50; |
|
111 | $expectedAttributes['Height'] = 4; |
|
112 | $expectedAttributes['FontSize'] = 8; |
|
113 | ||
114 | $this->assertEquals($expectedAttributes, $attributes); |
|
115 | } |
|
116 | ||
117 | /** |
|
118 | * Tests the default attributes of the right reference number element |
|
@@ 123-136 (lines=14) @@ | ||
120 | * @return void |
|
121 | * @covers ::setDefaults |
|
122 | */ |
|
123 | public function testReferenceNumberRightAttrDefaultValues() |
|
124 | { |
|
125 | $attributes = $this->paymentSlip->getReferenceNumberRightAttr(); |
|
126 | ||
127 | $expectedAttributes = $this->defaultAttributes; |
|
128 | ||
129 | $expectedAttributes['PosX'] = 125; |
|
130 | $expectedAttributes['PosY'] = 33.5; |
|
131 | $expectedAttributes['Width'] = 80; |
|
132 | $expectedAttributes['Height'] = 4; |
|
133 | $expectedAttributes['TextAlign'] = 'R'; |
|
134 | ||
135 | $this->assertEquals($expectedAttributes, $attributes); |
|
136 | } |
|
137 | ||
138 | /** |
|
139 | * Tests the default attributes of the code line element |
|
@@ 144-158 (lines=15) @@ | ||
141 | * @return void |
|
142 | * @covers ::setDefaults |
|
143 | */ |
|
144 | public function testCodeLineAttrDefaultValues() |
|
145 | { |
|
146 | $attributes = $this->paymentSlip->getCodeLineAttr(); |
|
147 | ||
148 | $expectedAttributes = $this->defaultAttributes; |
|
149 | ||
150 | $expectedAttributes['PosX'] = 64; |
|
151 | $expectedAttributes['PosY'] = 85; |
|
152 | $expectedAttributes['Width'] = 140; |
|
153 | $expectedAttributes['Height'] = 4; |
|
154 | $expectedAttributes['FontFamily'] = 'OCRB10'; |
|
155 | $expectedAttributes['TextAlign'] = 'R'; |
|
156 | ||
157 | $this->assertEquals($expectedAttributes, $attributes); |
|
158 | } |
|
159 | ||
160 | /** |
|
161 | * Tests the setReferenceNumberLeftAttr method |