Completed
Push — develop ( d426db...c7f15b )
by Alejandro
22s queued 11s
created

ConfigProviderTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A configIsProperlyReturned() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ShlinkioTest\Shlink\CLI;
6
7
use PHPUnit\Framework\TestCase;
8
use Shlinkio\Shlink\CLI\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 configIsProperlyReturned(): void
21
    {
22
        $config = ($this->configProvider)();
23
24
        self::assertArrayHasKey('cli', $config);
25
        self::assertArrayHasKey('dependencies', $config);
26
    }
27
}
28