Completed
Push — master ( 6b4d01...deddd6 )
by Daniel
03:16
created

BaseTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 7 1
A getContainer() 0 4 1
1
<?php
2
3
namespace Application\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
}