assertSame(["abc", "foo", "bar"], yield Pipeline\toArray($pipeline)); } public function testEmpty() { $pipeline = Pipeline\fromIterable([], 5); $this->assertSame([], yield Pipeline\toArray($pipeline)); } }