| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function testFixRemoveArrayKeys() |
||
| 31 | { |
||
| 32 | $config = [ |
||
| 33 | 'a' => '1', |
||
| 34 | 'b' => '2', |
||
| 35 | 'c' => [ |
||
| 36 | 'd' => 4, |
||
| 37 | 'remove' => new RemoveArrayKeys(), |
||
| 38 | 'e' => 5, |
||
| 39 | ], |
||
| 40 | ]; |
||
| 41 | |||
| 42 | $fixed = $config; |
||
| 43 | unset($fixed['c']['remove']); |
||
| 44 | $fixed['c'] = array_values($fixed['c']); |
||
| 45 | |||
| 46 | $this->assertEquals($fixed, Helper::fixConfig($config)); |
||
| 47 | } |
||
| 49 |