Functional\Tests\ZipTest::testZippingSameSizedArrays PHP Method

testZippingSameSizedArrays() public method

    public function testZippingSameSizedArrays()
    {
        $result = [['one', 1, -1], ['two', 2, -2], ['three', 3, -3]];
        $this->assertSame($result, zip(['one', 'two', 'three'], [1, 2, 3], [-1, -2, -3]));
        $this->assertSame($result, zip(new ArrayIterator(['one', 'two', 'three']), new ArrayIterator([1, 2, 3]), new ArrayIterator([-1, -2, -3])));
    }