@@ -19,17 +19,29 @@ public function testInlineAndNot(): void
19
19
$ writer ->setConditionalFormatting (true );
20
20
$ writer ->setUseInlineCss (true );
21
21
$ html = $ writer ->generateHtmlAll ();
22
- $ expected = '<td class="gridlines" style="vertical-align:bottom; color:#000000; font-family: \'Aptos Narrow \'; font-size:12pt; text-align:right; width:102pt; color:#000000;background-color:#5A8AC6;">5</td> ' ;
22
+ $ expected = '<td style="vertical-align:bottom; color:#000000; font-family: \'Aptos Narrow \'; font-size:12pt; text-align:right; width:102pt; color:#000000;background-color:#5A8AC6;">5</td> ' ;
23
23
self ::assertStringContainsString ($ expected , $ html , 'inline conditional style ' );
24
- $ expected = '<td class="gridlines" style="vertical-align:bottom; font-weight:bold; color:#000000; font-family: \'Aptos Narrow \'; font-size:12pt; text-align:left; width:102pt">Column Heading</td> ' ;
24
+ $ expected = '<td style="vertical-align:bottom; font-weight:bold; color:#000000; font-family: \'Aptos Narrow \'; font-size:12pt; text-align:left; width:102pt">Column Heading</td> ' ;
25
25
self ::assertStringContainsString ($ expected , $ html , 'inline no conditional style ' );
26
+ $ expected = '<td style="vertical-align:bottom; color:#000000; font-family: \'Aptos Narrow \'; font-size:12pt; text-align:right; width:102pt; border-top:1px solid #92D050 !important;color:#000000;">1</td> ' ;
27
+ self ::assertStringContainsString ($ expected , $ html , 'inline border-top ' );
28
+ $ expected = '<td style="vertical-align:bottom; color:#000000; font-family: \'Aptos Narrow \'; font-size:12pt; text-align:right; width:102pt; border-top:1px solid #FF0000 !important;font-weight:bold;color:#000000;">2</td> ' ;
29
+ self ::assertStringContainsString ($ expected , $ html , 'inline border-top and bold ' );
30
+ $ expected = '<td style="vertical-align:bottom; color:#000000; font-family: \'Aptos Narrow \'; font-size:12pt; text-align:right; width:102pt">3</td> ' ;
31
+ self ::assertStringContainsString ($ expected , $ html , 'inline nomatch ' );
26
32
27
33
$ writer ->setUseInlineCss (false );
28
34
$ html = $ writer ->generateHtmlAll ();
29
- $ expected = '<td class="column0 style2 n" style="color:#000000;background-color:#5A8AC6;">5</td> ' ;
35
+ $ expected = '<td class="column0 style0 n" style="color:#000000;background-color:#5A8AC6;">5</td> ' ;
30
36
self ::assertStringContainsString ($ expected , $ html , 'notinline conditional style ' );
31
37
$ expected = '<td class="column0 style1 s">Column Heading</td> ' ;
32
38
self ::assertStringContainsString ($ expected , $ html , 'notinline no conditional style ' );
39
+ $ expected = '<td class="column0 style0 n" style="border-top:1px solid #92D050 !important;color:#000000;">1</td> ' ;
40
+ self ::assertStringContainsString ($ expected , $ html , 'notinline border-top ' );
41
+ $ expected = '<td class="column0 style0 n" style="border-top:1px solid #FF0000 !important;font-weight:bold;color:#000000;">2</td> ' ;
42
+ self ::assertStringContainsString ($ expected , $ html , 'notinline border-top bold ' );
43
+ $ expected = '<td class="column0 style0 n">3</td> ' ;
44
+ self ::assertStringContainsString ($ expected , $ html , 'notinline nomatch ' );
33
45
34
46
$ spreadsheet ->disconnectWorksheets ();
35
47
}
0 commit comments