| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class UserControllerTest extends TestCase |
||
| 12 | { |
||
| 13 | private ?FunctionalTester $tester; |
||
| 14 | |||
| 15 | protected function setUp(): void |
||
| 16 | { |
||
| 17 | $this->tester = new FunctionalTester(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function testGetIndex() |
||
| 21 | { |
||
| 22 | $method = 'GET'; |
||
| 23 | $url = '/'; |
||
| 24 | |||
| 25 | $this->tester->bootstrapApplication('web', dirname(__DIR__, 2)); |
||
| 26 | $response = $this->tester->doRequest($method, $url); |
||
| 27 | |||
| 28 | $this->assertEquals( |
||
| 29 | [ |
||
| 30 | 'status' => 'success', |
||
| 31 | 'error_message' => '', |
||
| 32 | 'error_code' => null, |
||
| 33 | 'data' => ['version' => '3.0', 'author' => 'yiisoft'], |
||
| 34 | ], |
||
| 35 | $response->getContentAsJson() |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testGetIndexMockVersion() |
||
| 58 | ); |
||
| 59 | } |
||
| 60 | } |
||
| 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