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

TestingPrimeBundle::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
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