Passed
Pull Request — master (#417)
by Alejandro
06:44
created

ConfigProviderTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\EventDispatcher;
5
6
use PHPUnit\Framework\TestCase;
7
use Shlinkio\Shlink\EventDispatcher\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();
17
    }
18
19
    /** @test */
20
    public function configIsReturned(): void
21
    {
22
        $config = $this->configProvider->__invoke();
23
24
        $this->assertArrayHasKey('dependencies', $config);
25
        $this->assertArrayHasKey('events', $config);
26
    }
27
}
28