ArrayConfigLoaderTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
eloc 10
c 2
b 0
f 2
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLoad() 0 4 1
1
<?php declare(strict_types=1);
2
/**
3
 * This file is part of the daikon-cqrs/config project.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace Daikon\Test\Config;
10
11
use Daikon\Config\ArrayConfigLoader;
12
use PHPUnit\Framework\TestCase;
13
14
final class ArrayConfigLoaderTest extends TestCase
15
{
16
    private const ARRAY_FIXTURE = [
17
        'couchdb' => [
18
            'host' => '127.0.0.1',
19
            'port' => 5984,
20
            'transport' => 'https',
21
            'user' => 'couchdb',
22
            'password' => 'couchdb'
23
        ]
24
    ];
25
26 1
    public function testLoad(): void
27
    {
28 1
        $arrayLoader = new ArrayConfigLoader;
29 1
        $this->assertEquals(self::ARRAY_FIXTURE, $arrayLoader->load([], self::ARRAY_FIXTURE));
30 1
    }
31
}
32