ModuleTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetAutoloaderConfig() 0 8 1
A testGetConfig() 0 6 1
1
<?php
2
3
namespace AtDataGridTest;
4
5
use PHPUnit\Framework\TestCase;
6
use AtDataGrid\Module;
7
8
/**
9
 * @covers AtDataGrid\Module
10
 */
11
class ModuleTest extends TestCase
12
{
13
    public function testGetAutoloaderConfig()
14
    {
15
        $module = new Module();
16
17
        $this->assertTrue(is_array($module->getAutoloaderConfig()));
0 ignored issues
show
Bug introduced by
The method getAutoloaderConfig() does not seem to exist on object<AtDataGrid\Module>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
18
        $this->assertCount(1, $module->getAutoloaderConfig());
0 ignored issues
show
Bug introduced by
The method getAutoloaderConfig() does not seem to exist on object<AtDataGrid\Module>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
19
        $this->assertArrayHasKey('Zend\Loader\StandardAutoloader', $module->getAutoloaderConfig());
0 ignored issues
show
Bug introduced by
The method getAutoloaderConfig() does not seem to exist on object<AtDataGrid\Module>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
20
    }
21
22
    public function testGetConfig()
23
    {
24
        $module = new Module();
25
26
        $this->assertTrue(is_array($module->getConfig()));
27
    }
28
}