public function testZip() { $zipped = zip(range(0, 5), range(5, 0, -1)); $this->assertSame([[0, 5], [1, 4], [2, 3], [3, 2], [4, 1], [5, 0]], toArray($zipped)); }