ApiWrapperExtensionTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A testExtension() 0 5 1
1
<?php
2
3
namespace Franjid\ApiWrapperBundle\Tests\DependencyInjection;
4
5
use Franjid\ApiWrapperBundle\DependencyInjection\ApiWrapperExtension;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
8
class ApiWrapperExtensionTest extends \PHPUnit_Framework_TestCase
9
{
10
    /**
11
     * @var ContainerBuilder
12
     */
13
    private $container;
14
15
    /**
16
     * @var ApiWrapperExtension
17
     */
18
    private $extension;
19
20
    public function setUp()
21
    {
22
        $this->container = new ContainerBuilder();
23
        $this->extension = new ApiWrapperExtension();
24
    }
25
26
    public function testExtension()
27
    {
28
        $config = [];
29
        $this->extension->load($config, $this->container);
30
    }
31
}
32