void setConstraints(
[mixed
{$this->constraints = array $constraints)();foreach($constraintsas$key=>$constraint){if(!($constraintinstanceofPHPUnit2_Framework_Constraint)){thrownewInvalidArgumentException('All parameters to '.__CLASS__.' must be a constraint object.'])