/** @dataProvider getPseudoElementsTestData */
public function testPseudoElements($source,
$element,
$pseudo) { $parser =
new Parser();
$selectors =
$parser->
parse($source);
$this->
assertCount(1,
$selectors);
/** @var SelectorNode $selector */
$selector =
$selectors[0
];
$this->
assertEquals($element,
(string) $selector->
getTree());
$this->
assertEquals($pseudo,
(string) $selector->
getPseudoElement());
} /** @dataProvider getSpecificityTestData */
public function testSpecificity($source,
$value) { $parser =
new Parser();
$selectors =
$parser->
parse($source);
$this->
assertCount(1,
$selectors);
/** @var SelectorNode $selector */
$selector =
$selectors[0
];