Total Complexity | 5 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class DemoTest extends TestCase |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $PACKAGE_NAME = "LaravelSmartRestful"; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $PACKAGE_CLASSES = [ |
||
25 | // "BaseAuthModel", |
||
26 | "BaseController", |
||
27 | // "BaseModel", |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $VENDOR = 'Alive2212'; |
||
34 | |||
35 | protected $app; |
||
36 | |||
37 | public function __construct() |
||
41 | } |
||
42 | |||
43 | public function createApplication() |
||
44 | { |
||
45 | $app = new Container(); |
||
46 | $app->bind('app', 'Illuminate\Container\Container'); |
||
47 | |||
48 | foreach ($this->PACKAGE_CLASSES as $PACKAGE_CLASS) { |
||
49 | $app->bind($PACKAGE_CLASS, $this->VENDOR.'\\'.$this->PACKAGE_NAME.'\\'.$PACKAGE_CLASS); |
||
50 | } |
||
51 | |||
52 | $app->bind('Cache', 'Illuminate\Support\Facades\Cache'); |
||
53 | |||
54 | $this->app = $app; |
||
55 | Facade::setFacadeApplication($app); |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * A basic test example. |
||
60 | * |
||
61 | * @return void |
||
62 | */ |
||
63 | public function testBasicTest() |
||
78 | } |
||
79 | } |
||
80 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths