getActiveSheet(); $worksheet->setCellValue('A1', 1); $worksheet->setCellValue('A2', 2); $this->assertEquals($cells, $worksheet->getCellCollection(), "Cache method \"$method\"."); PHPExcel_CachedObjectStorageFactory::finalize(); } } }