public function testMatrixTranspose() { $matrix = new Matrix([[3, 3, 3], [4, 2, 1], [5, 6, 7]]); $transposedMatrix = [[3, 4, 5], [3, 2, 6], [3, 1, 7]]; $this->assertEquals($transposedMatrix, $matrix->transpose()->toArray()); }