UserTextTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 1
cbo 2
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testCreateService() 0 8 1
1
<?php
2
3
namespace DmFilemanTest\Factory\View\Helper;
4
5
use DmFileman\Factory\View\Helper\UserText;
6
7
use DmTest\ServiceManager\ServiceLocatorDummy;
8
9
class UserTextTest extends \PHPUnit_Framework_TestCase
10
{
11
    /** @var UserText */
12
    private $sut;
13
14
    public function setUp()
15
    {
16
        $this->sut = new UserText;
17
    }
18
19
    /**
20
     * @covers DmFileman\Factory\View\Helper\UserText
21
     */
22
    public function testCreateService()
23
    {
24
        $serviceLocator = new ServiceLocatorDummy($this);
25
26
        $result = $this->sut->createService($serviceLocator);
27
28
        $this->assertInstanceOf('DmCommon\View\Helper\UserText', $result);
29
    }
30
}
31