getActiveSheet(); $active->freezePane($cellSplit, $topLeftCell); $writer = new WriterXls($spreadsheet); $writer->save($filename); // Read written file $reader = new ReaderXls(); $reloadedSpreadsheet = $reader->load($filename); $reloadedActive = $reloadedSpreadsheet->getActiveSheet(); $actualCellSplit = $reloadedActive->getFreezePane(); $actualTopLeftCell = $reloadedActive->getTopLeftCell(); self::assertSame($cellSplit, $actualCellSplit, 'should be able to set freeze pane'); self::assertSame($topLeftCell, $actualTopLeftCell, 'should be able to set the top left cell'); } }