| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function shouldReplacedArray() |
||
| 13 | { |
||
| 14 | $base = ['orange', 'banana', 'apple', 'raspberry']; |
||
| 15 | $replacements = [0 => 'pineapple', 4 => 'cherry']; |
||
| 16 | $basket = replace($base); |
||
| 17 | |||
| 18 | $this->assertEquals( |
||
| 19 | ['pineapple', 'banana', 'apple', 'raspberry', 'cherry'], |
||
| 20 | $basket($replacements) |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |