4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\CssSelector\Tests\Node;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\CssSelector\Node\NodeInterface;
17 abstract class AbstractNodeTest extends TestCase
19 /** @dataProvider getToStringConversionTestData */
20 public function testToStringConversion(NodeInterface $node, $representation)
22 $this->assertEquals($representation, (string) $node);
25 /** @dataProvider getSpecificityValueTestData */
26 public function testSpecificityValue(NodeInterface $node, $value)
28 $this->assertEquals($value, $node->getSpecificity()->getValue());
31 abstract public function getToStringConversionTestData();
33 abstract public function getSpecificityValueTestData();