1, 'b' => 2], ['a' => 3, 'b' => 4], ]); self::assertSame([[1, 3], [2, 4]], $result); } public function testJaggedArrayThrows(): void { $this->expectException(\InvalidArgumentException::class); Transpose::matrix([[1, 2, 3], [4, 5]]); } }