ArrayConfigTest::testLoadConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * test Event Object class
4
 *
5
 * @package     BlueEvent
6
 * @subpackage  Test
7
 * @author      Michał Adamiak    <[email protected]>
8
 * @copyright   chajr/bluetree
9
 */
10
namespace BlueEventTest\Config;
11
12
use BlueEvent\Event\Config\ArrayConfig;
13
use PHPUnit\Framework\TestCase;
14
15
class ArrayConfigTest extends TestCase
16
{
17
    public function testLoadConfig()
18
    {
19
        $arrayConfig = new ArrayConfig;
20
        $config = $arrayConfig->readConfig(
21
            $this->getEventFileConfigPath()
22
        );
23
24
        $this->assertEquals(include $this->getEventFileConfigPath(), $config);
25
    }
26
27
    /**
28
     * config data for test from file
29
     *
30
     * @return string
31
     */
32
    public function getEventFileConfigPath()
33
    {
34
        return __DIR__ . '/testConfig/config.php';
35
    }
36
}
37