Skip to content

Commit

Permalink
Pass already defined variable with list of constrains.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliance committed Jul 12, 2017
1 parent d17422d commit 308b892
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testWalkMultipleConstraints($array)
$i = 0;

foreach ($array as $key => $value) {
$this->expectValidateValueAt($i++, '['.$key.']', $value, array($constraint1, $constraint2));
$this->expectValidateValueAt($i++, '['.$key.']', $value, $constraints);
}

$this->validator->validate($array, new All($constraints));
Expand Down

0 comments on commit 308b892

Please sign in to comment.