public static function PHPUnit_Framework_Assert::assertAttributeNotContainsOnly

Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain 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:

1 call to PHPUnit_Framework_Assert::assertAttributeNotContainsOnly()
Framework_AssertTest::testAssertPublicAttributeNotContainsOnly in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeNotContainsOnly

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeNotContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = NULL, $message = '') {
  self::assertNotContainsOnly($type, self::readAttribute($haystackClassOrObject, $haystackAttributeName), $isNativeType, $message);
}