class CombinedSelectorNodeTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/Tests/Node/CombinedSelectorNodeTest.php \Symfony\Component\CssSelector\Tests\Node\CombinedSelectorNodeTest
Hierarchy
- class \Symfony\Component\CssSelector\Tests\Node\AbstractNodeTest extends \Symfony\Component\CssSelector\Tests\Node\PHPUnit_Framework_TestCase
- class \Symfony\Component\CssSelector\Tests\Node\CombinedSelectorNodeTest
Expanded class hierarchy of CombinedSelectorNodeTest
File
- vendor/
symfony/ css-selector/ Tests/ Node/ CombinedSelectorNodeTest.php, line 17
Namespace
Symfony\Component\CssSelector\Tests\NodeView source
class CombinedSelectorNodeTest extends AbstractNodeTest {
public function getToStringConversionTestData() {
return array(
array(
new CombinedSelectorNode(new ElementNode(), '>', new ElementNode()),
'CombinedSelector[Element[*] > Element[*]]',
),
array(
new CombinedSelectorNode(new ElementNode(), ' ', new ElementNode()),
'CombinedSelector[Element[*] <followed> Element[*]]',
),
);
}
public function getSpecificityValueTestData() {
return array(
array(
new CombinedSelectorNode(new ElementNode(), '>', new ElementNode()),
0,
),
array(
new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode()),
1,
),
array(
new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode(null, 'element')),
2,
),
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractNodeTest:: |
public | function | @dataProvider getSpecificityValueTestData | |
AbstractNodeTest:: |
public | function | @dataProvider getToStringConversionTestData | |
CombinedSelectorNodeTest:: |
public | function |
Overrides AbstractNodeTest:: |
|
CombinedSelectorNodeTest:: |
public | function |
Overrides AbstractNodeTest:: |