Passed
Push — master ( bcb5c7...42ec9c )
by Alexander
02:42
created

tests/bootstrap.php (1 issue)

Labels
Severity
1
<?php
2
use hiqdev\composer\config\Builder;
3
use yii\helpers\Yii;
0 ignored issues
show
The type yii\helpers\Yii was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
use Yiisoft\Di\Container;
5
6
// ensure we get report on all possible php errors
7
error_reporting(E_ALL);
8
9
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__;
10
$_SERVER['SCRIPT_FILENAME'] = __FILE__;
11
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