Please sign in to comment.
FIX Use array_intersect() with expected values so that the order matc…
…hes. The values in $values aren't returned in any order, so this test can randomly fail. This changes the check from expected = $values to $values \cap expected = $value. PHP's array_intersect maintains the keys of the first array, so order is preserved. The intersect also guarentees that the only accepted values are the expected ones.
- Loading branch information...