assertNotSameSize() public static method

Assert that the size of two arrays (or Countable or Traversable objects) is not the same.
public static assertNotSameSize ( array | Countable | Traversable $expected, array | Countable | Traversable $actual, string $message = '' )
$expected array | Countable | Traversable
$actual array | Countable | Traversable
$message string
Ejemplo n.º 1
0
/**
 * Assert that the size of two arrays (or `Countable` or `Iterator` objects)
 * is not the same.
 *
 * @param integer $expected
 * @param mixed   $actual
 * @param string  $message
 */
function assertNotSameSize($expectedCount, $haystack, $message = '')
{
    return PHPUnit_Framework_Assert::assertNotSameSize($expectedCount, $haystack, $message);
}
Ejemplo n.º 2
0
 /**
  * Assert that the size of two arrays (or `Countable` or `Traversable` objects) is not the same.
  *
  * @param array|Countable|Traversable $expected
  * @param string $message
  *
  * @return Expect
  */
 public function notToHaveSameSizeAs($expected, $message = '')
 {
     Assert::assertNotSameSize($expected, $this->value, $message);
     return $this;
 }