Completed
Push — master ( 1fd677...d734d1 )
by Alejandro
27s queued 11s
created

ConfigProviderTest::configIsReturned()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 5
c 1
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\PreviewGenerator;
5
6
use PHPUnit\Framework\TestCase;
7
use Shlinkio\Shlink\PreviewGenerator\ConfigProvider;
8
9
class ConfigProviderTest extends TestCase
10
{
11
    /** @var ConfigProvider */
12
    private $configProvider;
13
14
    public function setUp(): void
15
    {
16
        $this->configProvider = new ConfigProvider();
0 ignored issues
show
Deprecated Code introduced by
The class Shlinkio\Shlink\PreviewGenerator\ConfigProvider has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

16
        $this->configProvider = /** @scrutinizer ignore-deprecated */ new ConfigProvider();
Loading history...
17
    }
18
19
    /** @test */
20
    public function configIsReturned(): void
21
    {
22
        $config = ($this->configProvider)();
23
24
        $this->assertArrayHasKey('dependencies', $config);
25
    }
26
}
27