PHPUnit_Framework_Assert::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.
Signature
public function assertAttributeContainsOnly(string
$type,
[string
$haystackAttributeName = null,
[mixed
$haystackClassOrObject = null,
[boolean
$isNativeType = null,
[string
$message = '']]]] )
Parameters
$type
—
string
$haystackAttributeName
—
string
$haystackClassOrObject
—
mixed
$isNativeType
—
boolean
$message
—
string
Violations
Checkstyle
Line |
Column |
Severity |
Message |
347 |
147 |
warning
|
Line exceeds 120 characters; contains 146 characters |