File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
tests/PhpSpreadsheetTests/Reader/Xlsx Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 55namespace PhpOffice \PhpSpreadsheetTests \Reader \Xlsx ;
66
77use PhpOffice \PhpSpreadsheet \Reader \Xlsx ;
8- use PhpOffice \ PhpSpreadsheetTests \ Functional \ AbstractFunctional ;
8+ use PHPUnit \ Framework \ TestCase ;
99
10- class DrawingInCell extends AbstractFunctional
10+ class DrawingInCellTest extends TestCase
1111{
1212 public function testPictureInCell (): void
1313 {
1414 $ file = 'tests/data/Reader/XLSX/drawing_in_cell.xlsx ' ;
1515 $ reader = new Xlsx ();
1616 $ spreadsheet = $ reader ->load ($ file );
17-
18- $ reloadedSpreadsheet = $ this ->writeAndReload ($ spreadsheet , 'Xlsx ' );
19- $ spreadsheet ->disconnectWorksheets ();
20- $ sheet = $ reloadedSpreadsheet ->getActiveSheet ();
17+ $ sheet = $ spreadsheet ->getActiveSheet ();
2118 $ drawings = $ sheet ->getDrawingCollection ();
2219 self ::assertCount (1 , $ drawings );
20+
2321 if ($ drawings [0 ] === null ) {
2422 self ::fail ('Unexpected null drawing ' );
2523 } else {
@@ -33,6 +31,6 @@ public function testPictureInCell(): void
3331 self ::assertSame (154 , $ drawings [0 ]->getImageHeight ());
3432 }
3533
36- $ reloadedSpreadsheet ->disconnectWorksheets ();
34+ $ spreadsheet ->disconnectWorksheets ();
3735 }
3836}
You can’t perform that action at this time.
0 commit comments