ApplicationTest::testCreateService()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 8
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace DmCommonTest\Factory\Log;
4
5
use DmCommon\Factory\Log\Application;
6
7
use DmTest\ServiceManager\ServiceLocatorDummy;
8
9
class ApplicationTest extends \PHPUnit_Framework_TestCase
10
{
11
    /** @var Application */
12
    private $sut;
13
14
    public function setUp()
15
    {
16
        $this->sut = new Application();
17
    }
18
19
    /**
20
     * @covers DmCommon\Factory\Log\Application
21
     */
22
    public function testCreateService()
23
    {
24
        $serviceLocator = new ServiceLocatorDummy($this);
25
26
        $result = $this->sut->createService($serviceLocator);
27
28
        $this->assertInstanceOf('Zend\Log\Logger', $result);
29
    }
30
}
31