File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
tests/PhpSpreadsheetTests/Reader/Xlsx Expand file tree Collapse file tree 1 file changed +6
-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 {
14+ echo 'testPictureInCell ' ;
15+
1416 $ file = 'tests/data/Reader/XLSX/drawing_in_cell.xlsx ' ;
1517 $ reader = new Xlsx ();
1618 $ spreadsheet = $ reader ->load ($ file );
17-
18- $ reloadedSpreadsheet = $ this ->writeAndReload ($ spreadsheet , 'Xlsx ' );
19- $ spreadsheet ->disconnectWorksheets ();
20- $ sheet = $ reloadedSpreadsheet ->getActiveSheet ();
19+ $ sheet = $ spreadsheet ->getActiveSheet ();
2120 $ drawings = $ sheet ->getDrawingCollection ();
2221 self ::assertCount (1 , $ drawings );
2322 if ($ drawings [0 ] === null ) {
@@ -33,6 +32,6 @@ public function testPictureInCell(): void
3332 self ::assertSame (154 , $ drawings [0 ]->getImageHeight ());
3433 }
3534
36- $ reloadedSpreadsheet ->disconnectWorksheets ();
35+ $ spreadsheet ->disconnectWorksheets ();
3736 }
3837}
You can’t perform that action at this time.
0 commit comments