Test Failed
Push — feature/gacela-config-callable ( f0c396 )
by Chema
04:24
created

FeatureTest::test_config_php_files()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 12
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\UsingGacelaConfigFn;
6
7
use Gacela\Framework\Gacela;
8
use PHPUnit\Framework\TestCase;
9
10
final class FeatureTest extends TestCase
11
{
12
    public function setUp(): void
13
    {
14
        Gacela::bootstrap(__DIR__);
15
    }
16
17
    public function test_config_php_files(): void
18
    {
19
        $facade = new LocalConfig\Facade();
20
21
        self::assertSame(
22
            [
23
                'config' => 1,
24
                'override' => 2,
25
                'local' => 3,
26
                'override_from_local' => 4,
27
            ],
28
            $facade->doSomething()
29
        );
30
    }
31
}
32