Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testFileBoundCache(): void |
||
18 | { |
||
19 | $cache = new ArrayAdapter(); |
||
20 | $fileBoundCache = new FileBoundCache($cache, 'prefix'); |
||
21 | |||
22 | $tmpPath = sys_get_temp_dir().'/tmpCacheTest'; |
||
23 | touch($tmpPath); |
||
24 | |||
25 | $fileBoundCache->set('foo', 'bar', [ |
||
26 | $tmpPath |
||
27 | ]); |
||
28 | |||
29 | $this->assertSame('bar', $fileBoundCache->get('foo')); |
||
30 | |||
31 | sleep(1); |
||
32 | clearstatcache($tmpPath); |
||
33 | touch($tmpPath); |
||
34 | |||
35 | $this->assertNull($fileBoundCache->get('foo')); |
||
36 | } |
||
49 |
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