ModuleTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetConfig() 0 7 1
A testGetAutoloaderConfig() 0 5 1
1
<?php
2
3
namespace JhHubTest;
4
5
use JhHub\Module;
6
7
/**
8
 * Class ModuleTest
9
 * @package JhHubTest
10
 * @author Aydin Hassan <[email protected]>
11
 */
12
class ModuleTest extends \PHPUnit_Framework_TestCase
13
{
14
15
    public function testGetConfig()
16
    {
17
        $module = new Module();
18
19
        $this->assertInternalType('array', $module->getConfig());
20
        $this->assertSame($module->getConfig(), unserialize(serialize($module->getConfig())), 'Config is serializable');
21
    }
22
23
    public function testGetAutoloaderConfig()
24
    {
25
        $module = new Module;
26
        $this->assertInternalType('array', $module->getAutoloaderConfig());
27
    }
28
}
29