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

FeatureTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A test_config_php_files() 0 12 1
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