Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function __construct($config) |
||
14 | { |
||
15 | parent::__construct('test', true); |
||
16 | |||
17 | $fs = new Filesystem(); |
||
18 | |||
19 | if (!$fs->isAbsolutePath($config)) { |
||
20 | $config = __DIR__.'/config/'.$config; |
||
21 | } |
||
22 | |||
23 | if (!file_exists($config)) { |
||
24 | throw new \RuntimeException(sprintf('The config file "%s" does not exist', $config)); |
||
25 | } |
||
26 | |||
27 | $this->config = $config; |
||
28 | } |
||
29 | |||
58 |