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.
Signature
public function assertAttributeContains(mixed
$needle,
[string
$haystackAttributeName = '',
[mixed
$haystackClassOrObject = '',
[string
$message = '',
[boolean
$ignoreCase = false,
[boolean
$checkForObjectIdentity = true,
[boolean
$checkForNonObjectIdentity = false]]]]]] )
Parameters
$needle
—
mixed
$haystackAttributeName
—
string
$haystackClassOrObject
—
mixed
$message
—
string
$ignoreCase
—
boolean
$checkForObjectIdentity
—
boolean
$checkForNonObjectIdentity
—
boolean
Violations
Checkstyle
Line |
Column |
Severity |
Message |
200 |
212 |
warning
|
Line exceeds 120 characters; contains 211 characters |