public function ElementParserTest::testParse in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Tests/Parser/Shortcut/ElementParserTest.php \Symfony\Component\CssSelector\Tests\Parser\Shortcut\ElementParserTest::testParse()
@dataProvider getParseTestData
File
- vendor/
symfony/ css-selector/ Tests/ Parser/ Shortcut/ ElementParserTest.php, line 23
Class
- ElementParserTest
- @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
Namespace
Symfony\Component\CssSelector\Tests\Parser\ShortcutCode
public function testParse($source, $representation) {
$parser = new ElementParser();
$selectors = $parser
->parse($source);
$this
->assertCount(1, $selectors);
/** @var SelectorNode $selector */
$selector = $selectors[0];
$this
->assertEquals($representation, (string) $selector
->getTree());
}