| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public static function assertResourceCollectionEquals($expected, $json) |
||
| 29 | { |
||
| 30 | static::assertIsArrayOfObjects($expected); |
||
| 31 | PHPUnit::assertEquals(count($expected), count($json)); |
||
| 32 | |||
| 33 | $index = 0; |
||
| 34 | foreach ($expected as $resource) { |
||
| 35 | static::assertResourceObjectEquals($resource, $json[$index]); |
||
| 36 | $index++; |
||
| 37 | } |
||
| 57 |