Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/Unit/RuleSet/DeclarationBlockTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
final class DeclarationBlockTest extends TestCase
{
use RuleContainerTest;
use DeclarationListTest;

/**
* @var DeclarationBlock
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/RuleSet/RuleSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
final class RuleSetTest extends TestCase
{
use RuleContainerTest;
use DeclarationListTest;

/**
* @var RuleSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@

use PHPUnit\Framework\TestCase;
use Sabberworm\CSS\Property\Declaration;
use Sabberworm\CSS\RuleSet\RuleContainer;
use Sabberworm\CSS\RuleSet\DeclarationList;
use TRegx\PhpUnit\DataProviders\DataProvider;

/**
* This trait provides test methods for unit-testing classes that implement `RuleContainer`.
* This trait provides test methods for unit-testing classes that implement `DeclarationList`.
* It can be `use`d in a `TestCase` which has a `$subject` property that is an instance of the implementing class
* (the class under test), `setUp()` with default values.
*
* @phpstan-require-extends TestCase
*/
trait RuleContainerTest
trait DeclarationListTest
{
/**
* @test
*/
public function implementsRuleContainer(): void
public function implementsDeclarationList(): void
{
self::assertInstanceOf(RuleContainer::class, $this->subject);
self::assertInstanceOf(DeclarationList::class, $this->subject);
}

/**
Expand Down
Loading