| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | protected function compareOutputs(array $expected, array $actual) |
||
| 29 | { |
||
| 30 | $this->assertSameSize($expected, $actual); |
||
| 31 | |||
| 32 | $expectedCount = count($expected); |
||
| 33 | for ($i = 0; $i < $expectedCount; $i++) { |
||
| 34 | $this->assertSameSize($expected[$i], $actual[$i]); |
||
| 35 | $expectedChildCount = count($expected[$i]); |
||
| 36 | for ($j = 0; $j < $expectedChildCount; $j++) { |
||
| 37 | $this->assertRegExp($expected[$i][$j], $actual[$i][$j], sprintf('group: %d, line: %d', $i + 1, $j + 1)); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 |