Skip to content

Commit

Permalink
loophp/iterators: 3.1.1 -> 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Feb 18, 2024
1 parent 2cbba52 commit d019d62
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
"require": {
"php": ">= 8.1",
"loophp/iterators": "^3.1.1"
"loophp/iterators": "^3.2.0"
},
"require-dev": {
"ext-pcov": "*",
Expand Down
23 changes: 17 additions & 6 deletions tests/unit/Traits/GenericCollectionProviders.php
Original file line number Diff line number Diff line change
Expand Up @@ -3933,17 +3933,28 @@ public static function shuffleOperationProvider()
$operation = 'shuffle';
$input = range('a', 'e');

yield [
$operation,
[123],
$input,
[
$output = match (true) {
PHP_VERSION_ID < 80200 => [
3 => 'd',
0 => 'a',
4 => 'e',
2 => 'c',
1 => 'b',
],
default => [
2 => 'c',
0 => 'a',
3 => 'd',
1 => 'b',
4 => 'e',
0 => 'a',
],
};

yield [
$operation,
[123],
$input,
$output,
];
}

Expand Down

0 comments on commit d019d62

Please sign in to comment.