File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
tests/PhpSpreadsheetTests/Reader/Xlsx Expand file tree Collapse file tree 1 file changed +6
-4
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 PHPUnit \ Framework \ TestCase ;
8
+ use PhpOffice \ PhpSpreadsheetTests \ Functional \ AbstractFunctional ;
9
9
10
- class Issue4049Test extends TestCase
10
+ class Issue4049Test extends AbstractFunctional
11
11
{
12
- public static function testPr1869 (): void
12
+ public function testColorScale (): void
13
13
{
14
14
$ xlsxFile = 'tests/data/Reader/XLSX/issue.4049.xlsx ' ;
15
15
$ reader = new Xlsx ();
16
- $ spreadsheet = $ reader ->load ($ xlsxFile );
16
+ $ oldSpreadsheet = $ reader ->load ($ xlsxFile );
17
+ $ spreadsheet = $ this ->writeAndReload ($ oldSpreadsheet , 'Xlsx ' );
18
+ $ oldSpreadsheet ->disconnectWorksheets ();
17
19
$ sheet = $ spreadsheet ->getActiveSheet ();
18
20
$ conditionals = $ sheet ->getConditionalStylesCollection ();
19
21
self ::assertCount (1 , $ conditionals );
You can’t perform that action at this time.
0 commit comments