Skip to content

Commit 0be01bc

Browse files
committed
Fix line numbers and some more [] to array()
1 parent a6c461e commit 0be01bc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/Sabberworm/CSS/ParserTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -444,14 +444,14 @@ function testLineNumbersParsing() {
444444
$oDoc = $this->parsedStructureForFile('line-numbers');
445445
// array key is the expected line number
446446
$aExpected = array(
447-
1 => ['Sabberworm\CSS\Property\Charset'],
448-
3 => ['Sabberworm\CSS\Property\CSSNamespace'],
449-
5 => ['Sabberworm\CSS\RuleSet\AtRuleSet'],
450-
11 => ['Sabberworm\CSS\RuleSet\DeclarationBlock'],
447+
1 => array('Sabberworm\CSS\Property\Charset'),
448+
3 => array('Sabberworm\CSS\Property\CSSNamespace'),
449+
5 => array('Sabberworm\CSS\RuleSet\AtRuleSet'),
450+
11 => array('Sabberworm\CSS\RuleSet\DeclarationBlock'),
451451
// Line Numbers of the inner declaration blocks
452-
17 => ['Sabberworm\CSS\CSSList\KeyFrame', 18, 20],
453-
23 => ['Sabberworm\CSS\Property\Import'],
454-
25 => ['Sabberworm\CSS\RuleSet\DeclarationBlock']
452+
17 => array('Sabberworm\CSS\CSSList\KeyFrame', 18, 20),
453+
23 => array('Sabberworm\CSS\Property\Import'),
454+
25 => array('Sabberworm\CSS\RuleSet\DeclarationBlock')
455455
);
456456

457457
$aActual = array();

tests/files/line-numbers.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
@charset "utf-8"; /* line 3 */
1+
@charset "utf-8"; /* line 1 */
22

3-
@namespace "http://toto.example.org"; /* line 1 */
3+
@namespace "http://toto.example.org"; /* line 3 */
44

55
@font-face { /* line 5 */
66
font-family: "CrassRoots";
7-
src: url("http://example.com/media/cr.ttf")
7+
src: url("http://example.com/media/cr.ttf") /* line 7 */
88
}
99

1010

0 commit comments

Comments
 (0)