PHPUnit_Framework_Assert::assertAttributeCount
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
Signature
public function assertAttributeCount(integer
$expectedCount,
[string
$haystackAttributeName = '',
[mixed
$haystackClassOrObject = '',
[string
$message = '']]] )
Parameters
$expectedCount
—
integer
$haystackAttributeName
—
string
$haystackClassOrObject
—
mixed
$message
—
string
Violations
Checkstyle
Line |
Column |
Severity |
Message |
450 |
127 |
warning
|
Line exceeds 120 characters; contains 126 characters |