| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function testSetHttpOption() |
||
| 40 | { |
||
| 41 | $res = fopen('php://memory', 'r+'); |
||
| 42 | |||
| 43 | $this->tr->setHttpOption([ |
||
| 44 | 'debug' => $res, |
||
| 45 | 'headers' => [ |
||
| 46 | 'User-Agent' => 'Foo', |
||
| 47 | ], |
||
| 48 | ])->translate('hello'); |
||
| 49 | rewind($res); |
||
| 50 | $output = str_replace("\r", '', stream_get_contents($res)); |
||
| 51 | $this->assertContains('User-Agent: Foo', $output); |
||
| 52 | |||
| 53 | $this->tr->setHttpOption([ |
||
| 54 | 'debug' => $res, |
||
| 55 | 'headers' => [ |
||
| 56 | 'User-Agent' => 'Bar', |
||
| 57 | ], |
||
| 58 | ])->translate('world'); |
||
| 59 | rewind($res); |
||
| 60 | $output = str_replace("\r", '', stream_get_contents($res)); |
||
| 61 | $this->assertContains('User-Agent: Bar', $output); |
||
| 62 | fclose($res); |
||
| 63 | } |
||
| 65 |
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