| Conditions | 4 |
| Paths | 6 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 2 | public function setUp() |
|
| 38 | { |
||
| 39 | 2 | $firstRun = !is_file($testRootReady = TEST_ROOT_PATH . '/ready'); |
|
| 40 | 2 | $firstRun && $assembler = $this->prepareTestRoot($testRootReady); |
|
| 41 | 2 | $di = Di::getDefault(); |
|
| 42 | 2 | include TEST_ROOT_PATH . '/vendor/phwoolcon/di.php'; |
|
| 43 | 2 | $this->di = $di; |
|
| 44 | 2 | Clearer::clear(); |
|
| 45 | 2 | isset($assembler) && Config::get('database.default') && $assembler->runMigrations($this->di); |
|
| 46 | 2 | $class = get_class($this); |
|
| 47 | 2 | Log::debug("================== Running {$class}::{$this->getName()}() ... =================="); |
|
| 48 | 2 | Timer::start(); |
|
| 49 | 2 | } |
|
| 50 | |||
| 58 |