Test Failed
Branch master (9acec7)
by Agel_Nash
02:58
created

TVAbstract::getTVExtender()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 6
nc 1
nop 1
1
<?php namespace DocLister\Tests\DL\Extender;
2
3
use DocLister\Tests\DL\DLAbstract;
4
5
abstract class TVAbstract extends DLAbstract
6
{
7
    protected $TVList = array(
8
        'price' => 1,
9
        'image' => 2,
10
        'other' => 3
11
    );
12
13
    public function getTVExtender(&$DL)
14
    {
15
        $extTV = $this->getMock('tv_DL_Extender', array('getTVnames'), array($DL, 'tv'));
16
17
        $extTV->expects($this->any())
18
            ->method('getTVnames')
19
            ->will($this->returnValue($this->TVList));
20
21
        $this->setProperty($DL, 'extTV', $extTV);
22
23
        return $extTV;
24
    }
25
}