PHPUnit_Framework_Assert::containsOnlyInstancesOf

Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.