Skip to content

Commit 12df2a5

Browse files
author
Thomas Lallement
committed
Fix the Unit Test
1 parent 9920935 commit 12df2a5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@
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
{
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
}

0 commit comments

Comments
 (0)