| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | 12 | private function assertSameArrayExceptOrder(array $expectedArray, array $array, $message = '') |
|
|
|
|||
| 8 | { |
||
| 9 | 12 | $this->assertCount(count($expectedArray), $array, $message); |
|
| 10 | |||
| 11 | 9 | foreach($array as $value) |
|
| 12 | { |
||
| 13 | 9 | $index = array_search($value, $expectedArray, true); |
|
| 14 | 9 | $this->assertNotFalse($index, $message); |
|
| 15 | |||
| 16 | 6 | unset($expectedArray[$index]); |
|
| 17 | 6 | } |
|
| 18 | 1 | } |
|
| 19 | |||
| 39 |