Checks if used types are declared or listed as dependencies.
1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace App\Tests\Crossword\Application\Assert; |
||
6 | |||
7 | use App\Crossword\Application\Assert\RequestAssert; |
||
8 | use App\Crossword\Application\Exception\RequestException; |
||
9 | use PHPUnit\Framework\TestCase; |
||
10 | use Symfony\Component\HttpFoundation\Request; |
||
0 ignored issues
–
show
|
|||
11 | |||
12 | /** |
||
13 | * @coversDefaultClass \App\Crossword\Application\Assert\RequestAssert |
||
14 | */ |
||
15 | final class RequestAssertTest extends TestCase |
||
16 | { |
||
17 | /** |
||
18 | * @covers ::missingRequest |
||
19 | */ |
||
20 | public function testThrowExceptionWhenRequestIsMissing(): void |
||
21 | { |
||
22 | $this->expectException(RequestException::class); |
||
23 | |||
24 | RequestAssert::missingRequest(null); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @covers ::missingRequest |
||
29 | */ |
||
30 | public function testSuccessfullyRequest(): void |
||
31 | { |
||
32 | RequestAssert::missingRequest(new Request()); |
||
33 | |||
34 | self::assertTrue(true); |
||
35 | } |
||
36 | } |
||
37 |
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