Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __construct($config) |
||
23 | { |
||
24 | parent::__construct('test', true); |
||
25 | |||
26 | $fs = new Filesystem(); |
||
27 | |||
28 | if (!$fs->isAbsolutePath($config)) { |
||
29 | $config = __DIR__.'/config/'.$config; |
||
30 | } |
||
31 | |||
32 | if (!file_exists($config)) { |
||
33 | throw new \RuntimeException(sprintf('The config file "%s" does not exist', $config)); |
||
34 | } |
||
35 | |||
36 | $this->config = $config; |
||
37 | } |
||
38 | |||
67 |