Passed
Pull Request — master (#3)
by Vincent
08:42
created

TestingPrimeBundle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 19
ccs 0
cts 10
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A shutdown() 0 5 1
1
<?php
2
3
namespace Bdf\PrimeBundle;
4
5
use Bdf\Prime\Prime;
6
use Bdf\Prime\Test\TestPack;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
/**
10
 * TestingPrimeBundle
11
 *
12
 * @author Seb
13
 */
14
class TestingPrimeBundle extends Bundle
15
{
16
    /**
17
     * {@inheritDoc}
18
     */
19
    public function boot()
20
    {
21
        Prime::configure($this->container);
22
        TestPack::pack()->initialize();
23
    }
24
25
    /**
26
     * {@inheritDoc}
27
     */
28
    public function shutdown()
29
    {
30
        TestPack::pack()->clear();
31
        TestPack::pack()->destroy();
32
        Prime::configure(null);
33
    }
34
}
35