You are here

public function ParserTest::testParser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Tests/Parser/ParserTest.php \Symfony\Component\CssSelector\Tests\Parser\ParserTest::testParser()

@dataProvider getParserTestData

File

vendor/symfony/css-selector/Tests/Parser/ParserTest.php, line 23

Class

ParserTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function testParser($source, $representation) {
  $parser = new Parser();
  $this
    ->assertEquals($representation, array_map(function (SelectorNode $node) {
    return (string) $node
      ->getTree();
  }, $parser
    ->parse($source)));
}