6d24789320561905a29555d7ea307f1b7d1ac29c
[yaffs-website] / vendor / symfony / css-selector / Tests / Node / ElementNodeTest.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\CssSelector\Tests\Node;
13
14 use Symfony\Component\CssSelector\Node\ElementNode;
15
16 class ElementNodeTest extends AbstractNodeTest
17 {
18     public function getToStringConversionTestData()
19     {
20         return array(
21             array(new ElementNode(), 'Element[*]'),
22             array(new ElementNode(null, 'element'), 'Element[element]'),
23             array(new ElementNode('namespace', 'element'), 'Element[namespace|element]'),
24         );
25     }
26
27     public function getSpecificityValueTestData()
28     {
29         return array(
30             array(new ElementNode(), 0),
31             array(new ElementNode(null, 'element'), 1),
32             array(new ElementNode('namespace', 'element'), 1),
33         );
34     }
35 }