Conditions | 2 |
Paths | 2 |
Total Lines | 23 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 19 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
42 | 2 | public function setUp() |
|
43 | { |
||
44 | 2 | is_file($testRootReady = TEST_ROOT_PATH . '/ready') || $this->prepareTestRoot($testRootReady); |
|
45 | |||
46 | /* @var Di $di */ |
||
47 | 2 | $di = $this->di = Di::getDefault(); |
|
48 | 2 | Events::register($di); |
|
49 | 2 | DiFix::fix($di); |
|
50 | 2 | Db::register($di); |
|
51 | 2 | Cache::register($di); |
|
52 | 2 | Log::register($di); |
|
53 | 2 | $this->reloadConfig(); |
|
54 | 2 | Counter::register($this->di); |
|
55 | 2 | Aliases::register($di); |
|
56 | 2 | I18n::register($di); |
|
57 | 2 | Cookies::register($di); |
|
58 | 2 | Session::register($di); |
|
59 | 2 | Clearer::clear(); |
|
60 | |||
61 | 2 | $class = get_class($this); |
|
62 | 2 | Log::debug("================== Running {$class}::{$this->getName()}() ... =================="); |
|
63 | 2 | Timer::start(); |
|
64 | 2 | } |
|
65 | |||
73 |