PHPUnit_Framework_Assert::assertCount

Asserts the number of elements of an array, Countable or Traversable.