Completed
Push — master ( ea8409...03835b )
by Emil
02:17
created

ConfigurationTest::testUnConfiguredConfiguration()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Glooby\TaskBundle\Tests\DependencyInjection;
4
5
use Glooby\TaskBundle\DependencyInjection\Configuration;
6
use Symfony\Component\Config\Definition\Processor;
7
8
/**
9
 * @author Emil Kilhage
10
 */
11
class ConfigurationTest extends \PHPUnit_Framework_TestCase
12
{
13
    /**
14
     * @var Processor
15
     */
16
    private $processor;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function setUp()
22
    {
23
        $this->processor = new Processor();
24
    }
25
26
    private function getConfigs(array $configArray)
27
    {
28
        $configuration = new Configuration(true);
29
30
        return $this->processor->processConfiguration($configuration, array($configArray));
31
    }
32
33
    public function testUnConfiguredConfiguration()
34
    {
35
        $configuration = $this->getConfigs(array());
36
        $this->assertSame(array(), $configuration);
37
    }
38
}
39