Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public static function setUpBeforeClass() |
||
19 | { |
||
20 | $vendorDir = __DIR__ . '/../vendor'; |
||
21 | $vendorAutoload = $vendorDir . '/autoload.php'; |
||
22 | if (file_exists($vendorAutoload)) { |
||
23 | require_once($vendorAutoload); |
||
24 | } else { |
||
25 | throw new NotSupportedException("Vendor autoload file '{$vendorAutoload}' is missing."); |
||
26 | } |
||
27 | require_once($vendorDir . '/yiisoft/yii2/Yii.php'); |
||
28 | Yii::setAlias('@vendor', $vendorDir); |
||
29 | } |
||
30 | |||
63 |