public static function PHPUnit_Framework_Assert::assertNotSameSize

Assert that the size of two arrays (or `Countable` or `Iterator` objects) is not the same.

Parameters

array|Countable|Iterator $expected:

array|Countable|Iterator $actual:

string $message:

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php, line 1413

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertNotSameSize($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');
  }
  $constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_SameSize($expected));
  self::assertThat($actual, $constraint, $message);
}