BasicTestCase::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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