Completed
Push — master ( 5f7cbd...b12d8e )
by Alejandro
03:03
created

ConfigProviderTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A configIsCorrect() 0 6 1
1
<?php
2
namespace AcelayaTest\ExpressiveErrorHandler;
3
4
use Acelaya\ExpressiveErrorHandler\ConfigProvider;
5
use PHPUnit_Framework_TestCase as TestCase;
6
7
class ConfigProviderTest extends TestCase
8
{
9
    /**
10
     * @var ConfigProvider
11
     */
12
    protected $configProvider;
13
14
    public function setUp()
15
    {
16
        $this->configProvider = new ConfigProvider();
17
    }
18
19
    /**
20
     * @test
21
     */
22
    public function configIsCorrect()
23
    {
24
        $config = $this->configProvider->__invoke();
25
        $this->assertArrayHasKey('dependencies', $config);
26
        $this->assertArrayHasKey('error_handler', $config);
27
    }
28
}
29