| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class AbstractTest extends TestCase |
||
| 13 | { |
||
| 14 | protected $object; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var \Guzzle\Http\Client |
||
|
|
|||
| 18 | */ |
||
| 19 | protected $client; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param $path |
||
| 23 | * @return HttpRequest |
||
| 24 | */ |
||
| 25 | protected function generateRequestFromFixtures($path) |
||
| 26 | { |
||
| 27 | $httpRequest = HttpRequest::createFromGlobals(); |
||
| 28 | $parameters = require $path; |
||
| 29 | |||
| 30 | $httpRequest->query->replace(isset($parameters['GET']) ? $parameters['GET'] : []); |
||
| 31 | $httpRequest->request->replace(isset($parameters['POST']) ? $parameters['POST'] : []); |
||
| 32 | return $httpRequest; |
||
| 33 | } |
||
| 34 | |||
| 35 | protected function setUp() : void |
||
| 39 | // $this->client->setConfig( |
||
| 40 | // [ |
||
| 48 |
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