| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function testRemove() { |
||
| 28 | $filter = 'testfilter'; |
||
| 29 | $class = Filter::class; |
||
| 30 | $function = 'nonExistentFunction'; |
||
| 31 | $priority = 10; |
||
| 32 | $this->assertFalse(Filter::remove($filter, $class, $function), 'Should not be able te remove a filter that is not added'); |
||
| 33 | add_filter($filter, $function, $priority, 0); |
||
| 34 | $this->assertTrue(Filter::remove($filter, $class, $function), 'Should be able te remove a filter that is added'); |
||
| 35 | $this->assertFalse(Filter::remove($filter, $class, $function), 'Should not be able te remove a filter that is not added'); |
||
| 36 | } |
||
| 38 |
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