ConfigProviderTest::configIsReturned()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 2
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ShlinkioTest\Shlink\Common;
6
7
use PHPUnit\Framework\TestCase;
8
use Shlinkio\Shlink\Common\ConfigProvider;
9
10
class ConfigProviderTest extends TestCase
11
{
12
    private ConfigProvider $configProvider;
13
14
    public function setUp(): void
15
    {
16
        $this->configProvider = new ConfigProvider();
17
    }
18
19
    /** @test */
20
    public function configIsReturned(): void
21
    {
22
        $config = $this->configProvider->__invoke();
23
        $this->assertArrayHasKey('dependencies', $config);
24
    }
25
}
26