assertNotCount() public static méthode

Asserts the number of elements of an array, Countable or Traversable.
public static assertNotCount ( integer $expectedCount, mixed $haystack, string $message = '' )
$expectedCount integer
$haystack mixed
$message string
Exemple #1
0
 public function toHaveCount($count)
 {
     if ($this->negate) {
         a::assertNotCount($count, $this->actual);
     } else {
         a::assertCount($count, $this->actual);
     }
 }
Exemple #2
0
 public function notCount($array)
 {
     a::assertNotCount($array, $this->actual, $this->description);
 }
Exemple #3
0
/**
 * Asserts the number of elements of an array, Countable or Iterator.
 *
 * @param integer $expectedCount
 * @param mixed   $haystack
 * @param string  $message
 */
function assertNotCount($expectedCount, $haystack, $message = '')
{
    return PHPUnit_Framework_Assert::assertNotCount($expectedCount, $haystack, $message);
}
Exemple #4
0
 /**
  * Expect the number of elements of an array, Countable or Traversable.
  *
  * @param int $expectedCount
  * @param string $message
  *
  * @return Expect
  */
 public function notToHaveCount($expectedCount, $message = '')
 {
     Assert::assertNotCount($expectedCount, $this->value, $message);
     return $this;
 }