BasicTestCase   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A __construct() 0 8 1
A tearDown() 0 6 1
1
<?php
2
3
namespace WebCMS\Tests;
4
5
use \Mockery as m;
6
7
abstract class BasicTestCase extends \PHPUnit_Framework_TestCase
8
{
9
    protected $container;
10
11
    protected $em;
12
13
    public function __construct()
14
    {
15
        global $container;
16
17
        $this->container = $container;
18
19
        $this->em = $container->getService('doctrine.entityManager');
20
    }
21
22
    public function setUp()
23
    {
24
        parent::setUp();
25
    }
26
27
    public function tearDown()
28
    {
29
        parent::tearDown();
30
31
        m::close();
32
    }
33
}
34