| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | protected function assertArrayOf($expectedClass, array $array) |
||
| 21 | { |
||
| 22 | foreach ($array as $item) { |
||
| 23 | $assert = (is_a($item, $expectedClass)); |
||
| 24 | if ($assert === false) { |
||
| 25 | throw new PHPUnit_Framework_ExpectationFailedException( |
||
| 26 | sprintf( |
||
| 27 | 'Failed asserting that the the given array is an array of instances of \'%s\'.', |
||
| 28 | $expectedClass |
||
| 29 | ) |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 |