public static function PHPUnit_Framework_Assert::assertAttributeNotContains

Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain a needle.

@since Method available since Release 3.0.0

Parameters

mixed $needle:

string $haystackAttributeName:

mixed $haystackClassOrObject:

string $message:

boolean $ignoreCase:

boolean $checkForObjectIdentity:

3 calls to PHPUnit_Framework_Assert::assertAttributeNotContains()
Framework_AssertTest::testAssertPrivateAttributeNotContains in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeNotContains
Framework_AssertTest::testAssertProtectedAttributeNotContains in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeNotContains
Framework_AssertTest::testAssertPublicAttributeNotContains in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeNotContains

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeNotContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = FALSE, $checkForObjectIdentity = TRUE) {
  self::assertNotContains($needle, self::readAttribute($haystackClassOrObject, $haystackAttributeName), $message, $ignoreCase, $checkForObjectIdentity);
}