From 0caa4504e3d6e6bf4eef797c987b877d5c7a347c Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 14 Feb 2025 23:27:07 +0100 Subject: [PATCH] [TASK] Move some `AtRulBlockList` tests to unit tests Part of #758 --- tests/CSSList/AtRuleBlockListTest.php | 33 ---------------- tests/Unit/CSSList/AtRuleBlockListTest.php | 46 ++++++++++++++++++++++ 2 files changed, 46 insertions(+), 33 deletions(-) create mode 100644 tests/Unit/CSSList/AtRuleBlockListTest.php diff --git a/tests/CSSList/AtRuleBlockListTest.php b/tests/CSSList/AtRuleBlockListTest.php index 73e6c38b..676b908a 100644 --- a/tests/CSSList/AtRuleBlockListTest.php +++ b/tests/CSSList/AtRuleBlockListTest.php @@ -5,10 +5,7 @@ namespace Sabberworm\CSS\Tests\CSSList; use PHPUnit\Framework\TestCase; -use Sabberworm\CSS\Comment\Commentable; -use Sabberworm\CSS\CSSList\AtRuleBlockList; use Sabberworm\CSS\Parser; -use Sabberworm\CSS\Renderable; use Sabberworm\CSS\Settings; /** @@ -51,36 +48,6 @@ public static function provideSyntacticallyCorrectAtRule(): array ]; } - /** - * @test - */ - public function implementsAtRule(): void - { - $subject = new AtRuleBlockList(''); - - self::assertInstanceOf(AtRuleBlockList::class, $subject); - } - - /** - * @test - */ - public function implementsRenderable(): void - { - $subject = new AtRuleBlockList(''); - - self::assertInstanceOf(Renderable::class, $subject); - } - - /** - * @test - */ - public function implementsCommentable(): void - { - $subject = new AtRuleBlockList(''); - - self::assertInstanceOf(Commentable::class, $subject); - } - /** * @test * diff --git a/tests/Unit/CSSList/AtRuleBlockListTest.php b/tests/Unit/CSSList/AtRuleBlockListTest.php new file mode 100644 index 00000000..b57e0525 --- /dev/null +++ b/tests/Unit/CSSList/AtRuleBlockListTest.php @@ -0,0 +1,46 @@ +