public static function PHPUnit_Framework_Assert::assertAttributeCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertAttributeCount()
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
@since Method available since Release 3.6.0
Parameters
int $expectedCount:
string $haystackAttributeName:
mixed $haystackClassOrObject:
string $message:
1 call to PHPUnit_Framework_Assert::assertAttributeCount()
- Framework_AssertTest::testAssertAttributeCount in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertAttributeCount
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 425
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function assertAttributeCount($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message = '') {
self::assertCount($expectedCount, self::readAttribute($haystackClassOrObject, $haystackAttributeName), $message);
}