UnitTestServiceProvider::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * File was created 12.10.2015 06:49
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Helper;
7
8
use PeekAndPoke\Component\Slumber\Data\Addon\PublicReference\PublicReferenceGenerator;
9
use PeekAndPoke\Component\Slumber\Data\Addon\UserRecord\UserRecordProvider;
10
use PeekAndPoke\Component\Slumber\StaticServiceProvider;
11
12
/**
13
 * @author Karsten J. Gerber <[email protected]>
14
 */
15
class UnitTestServiceProvider extends StaticServiceProvider
16
{
17 49
    public function __construct()
18
    {
19 49
        $this->set(PublicReferenceGenerator::SERVICE_ID, new UnitTestPublicReferenceGenerator());
20
21 49
        $this->set(UserRecordProvider::SERVICE_ID, new UnitTestUserRecordProvider());
22 49
    }
23
}
24