function assertAttributeContainsOnly

Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains only values of a given type.

@since Method available since Release 3.1.4

Parameters

string $type:

string $haystackAttributeName:

mixed $haystackClassOrObject:

boolean $isNativeType:

string $message:

File

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

Code

function assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = NULL, $message = '') {
  return call_user_func_array('PHPUnit_Framework_Assert::assertAttributeContainsOnly', func_get_args());
}