Skip to content

Commit 47bf735

Browse files
author
Thomas Lallement
committed
Fix the Unit Test
1 parent 9920935 commit 47bf735

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/PhpSpreadsheetTests/Reader/Xlsx/DrawingInCell.php renamed to tests/PhpSpreadsheetTests/Reader/Xlsx/DrawingInCellTest.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@
55
namespace PhpOffice\PhpSpreadsheetTests\Reader\Xlsx;
66

77
use 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
}

0 commit comments

Comments
 (0)