ModuleTest::testGetAutoloaderConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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