edf4552bac8b8dadae6cb6c7e5c76688903770d3
[yaffs-website] / vendor / symfony / css-selector / Tests / Node / NegationNodeTest.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\ClassNode;
15 use Symfony\Component\CssSelector\Node\NegationNode;
16 use Symfony\Component\CssSelector\Node\ElementNode;
17
18 class NegationNodeTest extends AbstractNodeTest
19 {
20     public function getToStringConversionTestData()
21     {
22         return array(
23             array(new NegationNode(new ElementNode(), new ClassNode(new ElementNode(), 'class')), 'Negation[Element[*]:not(Class[Element[*].class])]'),
24         );
25     }
26
27     public function getSpecificityValueTestData()
28     {
29         return array(
30             array(new NegationNode(new ElementNode(), new ClassNode(new ElementNode(), 'class')), 10),
31         );
32     }
33 }