Passed
Push — master ( 3eb4db...99d5ff )
by Kirill
03:12
created

ConfigsTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testDirectories() 0 11 1
1
<?php
2
3
/**
4
 * Spiral Framework.
5
 *
6
 * @license   MIT
7
 * @author    Anton Titov (Wolfy-J)
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Boot;
13
14
use PHPUnit\Framework\TestCase;
15
use Spiral\Tests\Boot\Fixtures\TestConfig;
16
use Spiral\Tests\Boot\Fixtures\TestCore;
17
18
class ConfigsTest extends TestCase
19
{
20
    public function testDirectories(): void
21
    {
22
        $core = TestCore::init([
23
            'root'   => __DIR__,
24
            'config' => __DIR__ . '/config'
25
        ]);
26
27
        /** @var TestConfig $config */
28
        $config = $core->getContainer()->get(TestConfig::class);
29
30
        $this->assertSame(['key' => 'value'], $config->toArray());
31
    }
32
}
33