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 5
5
namespace PhpOffice \PhpSpreadsheetTests \Reader \Xlsx ;
6
6
7
7
use PhpOffice \PhpSpreadsheet \Reader \Xlsx ;
8
- use PhpOffice \ PhpSpreadsheetTests \ Functional \ AbstractFunctional ;
8
+ use PHPUnit \ Framework \ TestCase ;
9
9
10
- class DrawingInCell extends AbstractFunctional
10
+ class DrawingInCellTest extends TestCase
11
11
{
12
12
public function testPictureInCell (): void
13
13
{
14
14
$ file = 'tests/data/Reader/XLSX/drawing_in_cell.xlsx ' ;
15
15
$ reader = new Xlsx ();
16
16
$ spreadsheet = $ reader ->load ($ file );
17
-
18
- $ reloadedSpreadsheet = $ this ->writeAndReload ($ spreadsheet , 'Xlsx ' );
19
- $ spreadsheet ->disconnectWorksheets ();
20
- $ sheet = $ reloadedSpreadsheet ->getActiveSheet ();
17
+ $ sheet = $ spreadsheet ->getActiveSheet ();
21
18
$ drawings = $ sheet ->getDrawingCollection ();
22
19
self ::assertCount (1 , $ drawings );
20
+
23
21
if ($ drawings [0 ] === null ) {
24
22
self ::fail ('Unexpected null drawing ' );
25
23
} else {
@@ -33,6 +31,6 @@ public function testPictureInCell(): void
33
31
self ::assertSame (154 , $ drawings [0 ]->getImageHeight ());
34
32
}
35
33
36
- $ reloadedSpreadsheet ->disconnectWorksheets ();
34
+ $ spreadsheet ->disconnectWorksheets ();
37
35
}
38
36
}
You can’t perform that action at this time.
0 commit comments