Assert that the size of two arrays (or `Countable` or `Iterator` objects) is the same.
array|Countable|Iterator $expected:
array|Countable|Iterator $actual:
string $message:
public static function assertSameSize($expected, $actual, $message = '') {
if (!$expected instanceof Countable && !$expected instanceof Iterator && !is_array($expected)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'countable');
}
if (!$actual instanceof Countable && !$actual instanceof Iterator && !is_array($actual)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable');
}
self::assertThat($actual, new PHPUnit_Framework_Constraint_SameSize($expected), $message);
}