Asserts the number of elements of an array, Countable or Iterator.
integer $expectedCount:
mixed $haystack:
string $message:
public static function assertNotCount($expectedCount, $haystack, $message = '') {
if (!is_int($expectedCount)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'integer');
}
if (!$haystack instanceof Countable && !$haystack instanceof Iterator && !is_array($haystack)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(2, 'countable');
}
$constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_Count($expectedCount));
self::assertThat($haystack, $constraint, $message);
}