| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 19 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 39 | public function testGetIndexMockVersion(): void | ||
| 40 |     { | ||
| 41 | $method = 'GET'; | ||
| 42 | $url = '/'; | ||
| 43 | |||
| 44 | $this->tester->bootstrapApplication(dirname(__DIR__, 2)); | ||
| 45 | |||
| 46 |         $this->tester->mockService(VersionProvider::class, new VersionProvider('3.0.0')); | ||
| 47 | |||
| 48 | $response = $this->tester->doRequest($method, $url); | ||
| 49 | |||
| 50 | $this->assertEquals( | ||
| 51 | [ | ||
| 52 | 'status' => 'success', | ||
| 53 | 'error_message' => '', | ||
| 54 | 'error_code' => null, | ||
| 55 | 'data' => ['version' => '3.0.0', 'author' => 'yiisoft'], | ||
| 56 | ], | ||
| 57 | $response->getContentAsJson() | ||
| 58 | ); | ||
| 61 | 
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