5
5
namespace PhpOffice \PhpSpreadsheetTests \Writer \Xlsx ;
6
6
7
7
use Exception ;
8
- use PhpOffice \PhpSpreadsheet \Settings ;
9
8
use PhpOffice \PhpSpreadsheet \Shared \File ;
10
9
use PHPUnit \Framework \TestCase ;
11
10
use ZipArchive ;
@@ -66,7 +65,7 @@ public function testLoadSaveXlsxWithUnparsedData(): void
66
65
self ::assertNotEmpty ($ resultVbaProjectRaw , 'vbaProject.bin not found! ' );
67
66
68
67
// xl/workbook.xml
69
- $ xmlWorkbook = simplexml_load_string ($ resultWorkbookRaw ?: '' , 'SimpleXMLElement ' , Settings:: getLibXmlLoaderOptions () );
68
+ $ xmlWorkbook = simplexml_load_string ($ resultWorkbookRaw ?: '' , 'SimpleXMLElement ' );
70
69
self ::assertNotFalse ($ xmlWorkbook );
71
70
if (!$ xmlWorkbook ->workbookProtection ) {
72
71
self ::fail ('workbook.xml/workbookProtection not found! ' );
@@ -88,7 +87,7 @@ public function testLoadSaveXlsxWithUnparsedData(): void
88
87
89
88
// xl/worksheets/sheet1.xml
90
89
self ::assertStringContainsString ('<mc:AlternateContent ' , $ resultSheet1Raw , 'AlternateContent at sheet1.xml not found! ' );
91
- $ xmlWorksheet = simplexml_load_string ($ resultSheet1Raw ?: '' , 'SimpleXMLElement ' , Settings:: getLibXmlLoaderOptions () );
90
+ $ xmlWorksheet = simplexml_load_string ($ resultSheet1Raw ?: '' , 'SimpleXMLElement ' );
92
91
self ::assertNotFalse ($ xmlWorksheet );
93
92
$ pageSetupAttributes = $ xmlWorksheet ->pageSetup ->attributes ('http://schemas.openxmlformats.org/officeDocument/2006/relationships ' );
94
93
self ::assertTrue (isset ($ pageSetupAttributes ->id ), 'sheet1.xml/pageSetup[r:id] not found! ' );
0 commit comments