assertNotCount() public static method

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
コード例 #1
0
ファイル: Expect.php プロジェクト: jasonmccreary/expect
 public function toHaveCount($count)
 {
     if ($this->negate) {
         a::assertNotCount($count, $this->actual);
     } else {
         a::assertCount($count, $this->actual);
     }
 }
コード例 #2
0
ファイル: Verify.php プロジェクト: jaschweder/Verify
 public function notCount($array)
 {
     a::assertNotCount($array, $this->actual, $this->description);
 }
コード例 #3
0
ファイル: Functions.php プロジェクト: nbalonso/MunkiFace
/**
 * 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);
}
コード例 #4
0
ファイル: Expect.php プロジェクト: jpkleemans/phpunit-expect
 /**
  * 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;
 }