Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function testDirectUnsetRule():void { |
||
38 | $payload = [ |
||
39 | 'name' => 'collins', |
||
40 | 'pc_brand' => 'HP', |
||
41 | 'phone' => '+2349086756453', |
||
42 | 'school' => 'Delloite', |
||
43 | 'company' => 'Google' |
||
44 | ]; |
||
45 | $rule = [ |
||
46 | 'unset' => [ |
||
47 | 'school', |
||
48 | 'phone' |
||
49 | ] |
||
50 | ]; |
||
51 | self::$ci->refactor->run($payload, $rule); |
||
52 | $this->assertFalse(isset($payload['school'])); |
||
53 | $this->assertFalse(isset($payload['phone'])); |
||
54 | $this->assertTrue(isset($payload['company'])); |
||
55 | } |
||
57 |
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