BaseTestCase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 7 1
A getContainer() 0 4 1
1
<?php
2
3
namespace ApiBundle\Tests;
4
5
use Symfony\Component\DependencyInjection\Container;
6
7
class BaseTestCase extends \PHPUnit_Framework_TestCase
8
{
9
    private $container;
10
11
    protected function setUp()
12
    {
13
        $kernel = new \AppKernel('test', true);
14
        $kernel->boot();
15
16
        $this->container = $kernel->getContainer();
17
    }
18
19
    /**
20
     * @return Container
21
     */
22
    protected function getContainer()
23
    {
24
        return $this->container;
25
    }
26
}