You are here

public static function PHPUnit_Framework_Assert::assertAttributeContainsOnly in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \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.

@since Method available since Release 3.1.4

Parameters

string $type:

string $haystackAttributeName:

mixed $haystackClassOrObject:

bool $isNativeType:

string $message:

1 call to PHPUnit_Framework_Assert::assertAttributeContainsOnly()
Framework_AssertTest::testAssertPublicAttributeContainsOnly in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertAttributeContainsOnly

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertAttributeContainsOnly($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType = null, $message = '') {
  self::assertContainsOnly($type, self::readAttribute($haystackClassOrObject, $haystackAttributeName), $isNativeType, $message);
}