File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ Please also have a look at our
42
42
43
43
### Fixed
44
44
45
- - Revert broken support for multiple comments (#740 )
46
45
- Fix type errors in PHP strict mode (#664 )
47
46
- Fix undefined local variable in ` CalcFunction::parse() ` (#593 )
48
47
- Fix PHP notice caused by parsing invalid color values having less than 6
Original file line number Diff line number Diff line change @@ -1172,6 +1172,25 @@ public function flatCommentExtractingOneComment(): void
1172
1172
self ::assertSame ('Find Me! ' , $ comments [0 ]->getComment ());
1173
1173
}
1174
1174
1175
+ /**
1176
+ * @test
1177
+ */
1178
+ public function flatCommentExtractingTwoComments (): void
1179
+ {
1180
+ self ::markTestSkipped ('This is currently broken. ' );
1181
+
1182
+ $ parser = new Parser ('div {/*Find Me!*/left:10px; /*Find Me Too!*/text-align:left;} ' );
1183
+ $ document = $ parser ->parse ();
1184
+ $ contents = $ document ->getContents ();
1185
+ $ divRules = $ contents [0 ]->getRules ();
1186
+ $ rule1Comments = $ divRules [0 ]->getComments ();
1187
+ $ rule2Comments = $ divRules [1 ]->getComments ();
1188
+ self ::assertCount (1 , $ rule1Comments );
1189
+ self ::assertCount (1 , $ rule2Comments );
1190
+ self ::assertEquals ('Find Me! ' , $ rule1Comments [0 ]->getComment ());
1191
+ self ::assertEquals ('Find Me Too! ' , $ rule2Comments [0 ]->getComment ());
1192
+ }
1193
+
1175
1194
/**
1176
1195
* @test
1177
1196
*/
You can’t perform that action at this time.
0 commit comments