TestablePaymentSlipPdf   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0
ccs 0
cts 10
cp 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A displayImage() 0 3 1
A setFont() 0 3 1
A setBackground() 0 3 1
A setPosition() 0 3 1
A createCell() 0 3 1
1
<?php
2
/**
3
 * Swiss Payment Slip PDF
4
 *
5
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
6
 * @copyright 2012-2015 Some nice Swiss guys
7
 * @author Marc Würth <[email protected]>
8
 * @author Manuel Reinhard <[email protected]>
9
 * @author Peter Siska <[email protected]>
10
 * @link https://github.com/ravage84/SwissPaymentSlipPdf/
11
 */
12
13
namespace SwissPaymentSlip\SwissPaymentSlipPdf\Tests;
14
15
use SwissPaymentSlip\SwissPaymentSlipPdf\PaymentSlipPdf;
16
use SwissPaymentSlip\SwissPaymentSlip\PaymentSlip;
17
use SwissPaymentSlip\SwissPaymentSlip\PaymentSlipData;
18
19
// Include Composer's autoloader
20
require __DIR__.'/../vendor/autoload.php';
21
22
/**
23
 * A wrapping class to allow testing the abstract class PaymentSlipData
24
 */
25
class TestablePaymentSlipData extends PaymentSlipData
26
{
27
}
28
29
/**
30
 * A wrapping class to allow testing the abstract class PaymentSlip
31
 */
32
class TestablePaymentSlip extends PaymentSlip
33
{
34
}
35
36
/**
37
 * A wrapping class to allow testing the abstract class PaymentSlipPdf
38
 */
39
class TestablePaymentSlipPdf extends PaymentSlipPdf
40
{
41
    protected function displayImage($background)
42
    {
43
    }
44
45
    protected function setFont($fontFamily, $fontSize, $fontColor)
46
    {
47
    }
48
49
    protected function setBackground($background)
50
    {
51
    }
52
53
    protected function setPosition($posX, $posY)
54
    {
55
    }
56
57
    protected function createCell($width, $height, $line, $textAlign, $fill)
58
    {
59
    }
60
}
61