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

ConfigProviderTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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