diff --git a/tests/TuplesTest.php b/tests/TuplesTest.php index 41be828..e1250ab 100644 --- a/tests/TuplesTest.php +++ b/tests/TuplesTest.php @@ -90,11 +90,11 @@ public function testTuples(iterable $input, array $expected, bool $preserve_keys { $pipeline = take($input); - $pipeline->tuples(); + $actual = $pipeline->tuples()->toArray($preserve_keys); $this->assertSame( $expected, - $pipeline->toArray($preserve_keys) + $actual ); } @@ -102,8 +102,11 @@ public function testNoop(): void { $pipeline = new Standard(); - $pipeline->tuples(); + $actual = $pipeline->tuples()->toArray(); - $this->assertSame([], $pipeline->toArray()); + $this->assertSame( + [], + $actual + ); } }