public function toHaveCount($count) { if ($this->negate) { a::assertNotCount($count, $this->actual); } else { a::assertCount($count, $this->actual); } }
public function notCount($array) { a::assertNotCount($array, $this->actual, $this->description); }
/** * 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); }
/** * 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; }