Skip to content

Commit ee104df

Browse files
committed
Simplify value-driven case with exactly *one* value
1 parent c30d0d3 commit ee104df

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/php/util/data/unittest/SequenceTest.class.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ public function distinct($result, $input) {
107107
$this->assertSequence($result, Sequence::of($input)->distinct());
108108
}
109109

110-
#[@test, @values([
111-
# function($record) { return $record['id']; }
112-
#])]
113-
public function distinct_with($function) {
110+
#[@test]
111+
public function distinct_with_function() {
112+
$function= function($record) { return $record['id']; };
114113
$this->assertSequence(
115114
[['id' => 1, 'name' => 'Timm']],
116115
Sequence::of([['id' => 1, 'name' => 'Timm'], ['id' => 1]])->distinct($function)

0 commit comments

Comments
 (0)