Completed
Push — master ( 3a79fc...12bac9 )
by Alejandro
91:38
created

ConfigProviderTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testInvoke() 0 7 1
1
<?php
2
namespace AcMailerTest;
3
4
use AcMailer\ConfigProvider;
5
use PHPUnit_Framework_TestCase as TestCase;
6
7
class ConfigProviderTest extends TestCase
8
{
9
    /**
10
     * @var ConfigProvider
11
     */
12
    private $configProvider;
13
14
    protected function setUp()
15
    {
16
        $this->configProvider = new ConfigProvider();
17
    }
18
19
    public function testInvoke()
20
    {
21
        $expectedConfig = ['dependencies' => (include __DIR__ . '/../config/module.config.php')['service_manager']];
22
        $returnedConfig = $this->configProvider->__invoke();
23
24
        $this->assertEquals($expectedConfig, $returnedConfig);
25
    }
26
}
27