Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testProcess() |
||
19 | { |
||
20 | $request = Request::create('/test'); |
||
21 | $router =\Mockery::mock(Router::class); |
||
|
|||
22 | $router->shouldReceive('matchRequest')->with($request); |
||
23 | $router->shouldReceive('setContext'); |
||
24 | |||
25 | $dispatcher = new Dispatcher( |
||
26 | [ |
||
27 | new RouteResolverMiddleware($router), |
||
28 | function () { |
||
29 | $response = new Response(); |
||
30 | $response->setContent('test'); |
||
31 | return $response; |
||
32 | }, |
||
33 | ] |
||
34 | ); |
||
35 | |||
36 | /** @var Response $response */ |
||
37 | $response = $dispatcher->dispatch($request); |
||
38 | |||
39 | self::assertInstanceOf(Response::class, $response); |
||
40 | self::assertSame('test', $response->getContent()); |
||
41 | } |
||
43 |
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