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 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
+ echo 'testPictureInCell ' ;
15
+
14
16
$ file = 'tests/data/Reader/XLSX/drawing_in_cell.xlsx ' ;
15
17
$ reader = new Xlsx ();
16
18
$ spreadsheet = $ reader ->load ($ file );
17
-
18
- $ reloadedSpreadsheet = $ this ->writeAndReload ($ spreadsheet , 'Xlsx ' );
19
- $ spreadsheet ->disconnectWorksheets ();
20
- $ sheet = $ reloadedSpreadsheet ->getActiveSheet ();
19
+ $ sheet = $ spreadsheet ->getActiveSheet ();
21
20
$ drawings = $ sheet ->getDrawingCollection ();
22
21
self ::assertCount (1 , $ drawings );
23
22
if ($ drawings [0 ] === null ) {
@@ -33,6 +32,6 @@ public function testPictureInCell(): void
33
32
self ::assertSame (154 , $ drawings [0 ]->getImageHeight ());
34
33
}
35
34
36
- $ reloadedSpreadsheet ->disconnectWorksheets ();
35
+ $ spreadsheet ->disconnectWorksheets ();
37
36
}
38
37
}
You can’t perform that action at this time.
0 commit comments