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

ConfigProviderTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

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