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.