Completed
Push — master ( 884cd8...31b794 )
by Derek Stephen
04:13
created

HasViewTest.php (2 issues)

Labels
Severity
1
<?php declare(strict_types=1);
2
3
namespace BoneTest\Traits;
4
5
use Bone\View\Traits\HasViewTrait;
6
use Bone\View\ViewEngine;
7
use Bone\View\ViewEngineInterface;
8
use Codeception\TestCase\Test;
0 ignored issues
show
The type Codeception\TestCase\Test 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...
9
use Del\SessionManager;
0 ignored issues
show
The type Del\SessionManager 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...
10
11
class HasViewTest extends Test
12
{
13
    public function testRouter()
14
    {
15
        $class = new class {
16
          use HasViewTrait;
17
        };
18
19
        $class->setView(new ViewEngine());
20
        $this->assertInstanceOf(ViewEngineInterface::class, $class->getView());
21
    }
22
}
23