scratch – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
87 | office | 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 PHPUnit\Framework\TestCase; |
||
15 | use Symfony\Component\CssSelector\Node\NodeInterface; |
||
16 | |||
17 | abstract class AbstractNodeTest extends TestCase |
||
18 | { |
||
19 | /** @dataProvider getToStringConversionTestData */ |
||
20 | public function testToStringConversion(NodeInterface $node, $representation) |
||
21 | { |
||
22 | $this->assertEquals($representation, (string) $node); |
||
23 | } |
||
24 | |||
25 | /** @dataProvider getSpecificityValueTestData */ |
||
26 | public function testSpecificityValue(NodeInterface $node, $value) |
||
27 | { |
||
28 | $this->assertEquals($value, $node->getSpecificity()->getValue()); |
||
29 | } |
||
30 | |||
31 | abstract public function getToStringConversionTestData(); |
||
32 | |||
33 | abstract public function getSpecificityValueTestData(); |
||
34 | } |