public static function PHPUnit_Framework_Assert::assertAttributeCount

Asserts the number of elements of an array, Countable or Iterator that is stored in an attribute.

@since Method available since Release 3.6.0

Parameters

integer $expectedCount:

string $haystackAttributeName:

mixed $haystackClassOrObject:

string $message:

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php, line 404

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') {
  self::assertCount($expectedCount, self::readAttribute($haystackClassOrObject, $haystackAttributeName), $message);
}