Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function setUp() : void |
||
25 | { |
||
26 | parent::setUp(); |
||
27 | $controllerClass = $this->className; |
||
28 | $controller = new $controllerClass(); |
||
29 | $controller->setDI($this->di); |
||
30 | |||
31 | if (method_exists($controller, "initialize")) { |
||
32 | $controller->initialize(); |
||
33 | } |
||
34 | |||
35 | $this->controller = $controller; |
||
36 | } |
||
50 |