ModuleTest::testGetAutoloaderConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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