Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | (function () { |
||
13 | $composerAutoload = __DIR__ . '/../vendor/autoload.php'; |
||
14 | if (!is_file($composerAutoload)) { |
||
15 | die('You need to set up the project dependencies using Composer'); |
||
|
|||
16 | } |
||
17 | |||
18 | require_once $composerAutoload; |
||
19 | |||
20 | $container = new Container(require Builder::path('tests')); |
||
21 | |||
22 | Yii::setContainer($container); |
||
23 | })(); |
||
24 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.