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

TVAbstract   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTVExtender() 0 11 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
}