Skip to content

Commit 8fcaa09

Browse files
authored
[TASK] Move some AtRulBlockList tests to unit tests (#927)
Part of #758
1 parent fa66e43 commit 8fcaa09

File tree

2 files changed

+46
-33
lines changed

2 files changed

+46
-33
lines changed

tests/CSSList/AtRuleBlockListTest.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
namespace Sabberworm\CSS\Tests\CSSList;
66

77
use PHPUnit\Framework\TestCase;
8-
use Sabberworm\CSS\Comment\Commentable;
9-
use Sabberworm\CSS\CSSList\AtRuleBlockList;
108
use Sabberworm\CSS\Parser;
11-
use Sabberworm\CSS\Renderable;
129
use Sabberworm\CSS\Settings;
1310

1411
/**
@@ -51,36 +48,6 @@ public static function provideSyntacticallyCorrectAtRule(): array
5148
];
5249
}
5350

54-
/**
55-
* @test
56-
*/
57-
public function implementsAtRule(): void
58-
{
59-
$subject = new AtRuleBlockList('');
60-
61-
self::assertInstanceOf(AtRuleBlockList::class, $subject);
62-
}
63-
64-
/**
65-
* @test
66-
*/
67-
public function implementsRenderable(): void
68-
{
69-
$subject = new AtRuleBlockList('');
70-
71-
self::assertInstanceOf(Renderable::class, $subject);
72-
}
73-
74-
/**
75-
* @test
76-
*/
77-
public function implementsCommentable(): void
78-
{
79-
$subject = new AtRuleBlockList('');
80-
81-
self::assertInstanceOf(Commentable::class, $subject);
82-
}
83-
8451
/**
8552
* @test
8653
*
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Sabberworm\CSS\Tests\Unit\CSSList;
6+
7+
use PHPUnit\Framework\TestCase;
8+
use Sabberworm\CSS\Comment\Commentable;
9+
use Sabberworm\CSS\CSSList\AtRuleBlockList;
10+
use Sabberworm\CSS\Renderable;
11+
12+
/**
13+
* @covers \Sabberworm\CSS\CSSList\AtRuleBlockList
14+
*/
15+
final class AtRuleBlockListTest extends TestCase
16+
{
17+
/**
18+
* @test
19+
*/
20+
public function implementsAtRule(): void
21+
{
22+
$subject = new AtRuleBlockList('');
23+
24+
self::assertInstanceOf(AtRuleBlockList::class, $subject);
25+
}
26+
27+
/**
28+
* @test
29+
*/
30+
public function implementsRenderable(): void
31+
{
32+
$subject = new AtRuleBlockList('');
33+
34+
self::assertInstanceOf(Renderable::class, $subject);
35+
}
36+
37+
/**
38+
* @test
39+
*/
40+
public function implementsCommentable(): void
41+
{
42+
$subject = new AtRuleBlockList('');
43+
44+
self::assertInstanceOf(Commentable::class, $subject);
45+
}
46+
}

0 commit comments

Comments
 (0)