You are here

public static function PHPUnit_Framework_Assert::assertAttributeContains in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertAttributeContains()

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

@since Method available since Release 3.0.0

Parameters

mixed $needle:

string $haystackAttributeName:

mixed $haystackClassOrObject:

string $message:

bool $ignoreCase:

bool $checkForObjectIdentity:

bool $checkForNonObjectIdentity:

4 calls to PHPUnit_Framework_Assert::assertAttributeContains()
Framework_AssertTest::testAssertAttributeContainsNonObject in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeContains
Framework_AssertTest::testAssertPrivateAttributeContains in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeContains
Framework_AssertTest::testAssertProtectedAttributeContains in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeContains
Framework_AssertTest::testAssertPublicAttributeContains in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeContains

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 168

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeContains($needle, $haystackAttributeName, $haystackClassOrObject, $message = '', $ignoreCase = false, $checkForObjectIdentity = true, $checkForNonObjectIdentity = false) {
  self::assertContains($needle, self::readAttribute($haystackClassOrObject, $haystackAttributeName), $message, $ignoreCase, $checkForObjectIdentity, $checkForNonObjectIdentity);
}