8000 minor #29723 "ParserTest->getParserTestData()" -> only some more test… · symfony/symfony@bfebee8 · GitHub
[go: up one dir, main page]

Skip to content

Commit bfebee8

Browse files
committed
minor #29723 "ParserTest->getParserTestData()" -> only some more tests (voku)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #29723). Discussion ---------- "ParserTest->getParserTestData()" -> only some more tests | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Added only some more tests, because I missed to add ' into my selector and then I got this error ```SyntaxErrorException : Expected "]", but <delimiter "["``` ... so I tested my use-case directly here in the unit-tests. Commits ------- a95a8e4 \"ParserTest->getParserTestData()\" -> only some more tests
2 parents 99c9221 + a95a8e4 commit bfebee8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/CssSelector/Tests/Parser/ParserTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ public function getParserTestData()
120120
array('a[name]', array('Attribute[Element[a][name]]')),
121121
array("a[ name\t]", array('Attribute[Element[a][name]]')),
122122
array('a [name]', array('CombinedSelector[Element[a] <followed> Attribute[Element[*][name]]]')),
123+
array('[name="foo"]', array("Attribute[Element[*][name = 'foo']]")),
124+
array("[name='foo[1]']", array("Attribute[Element[*][name = 'foo[1]']]")),
125+
array("[name='foo[0][bar]']", array("Attribute[Element[*][name = 'foo[0][bar]']]")),
123126
array('a[rel="include"]', array("Attribute[Element[a][rel = 'include']]")),
124127
array('a[rel = include]', array("Attribute[Element[a][rel = 'include']]")),
125128
array("a[hreflang |= 'en']", array("Attribute[Element[a][hreflang |= 'en']]")),

0 commit comments

Comments
 (0)
0