Skip to content

Commit d71ff28

Browse files
authored
[TASK] Use more real-life data in a unit test (#952)
This makes the test easier to read. Also, this prepares for when an `AtRuleBlockList` might not allow an empty type anymore.
1 parent bb72f6e commit d71ff28

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/Unit/CSSList/AtRuleBlockListTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class AtRuleBlockListTest extends TestCase
2121
*/
2222
public function implementsAtRule(): void
2323
{
24-
$subject = new AtRuleBlockList('');
24+
$subject = new AtRuleBlockList('supports');
2525

2626
self::assertInstanceOf(AtRuleBlockList::class, $subject);
2727
}
@@ -31,7 +31,7 @@ public function implementsAtRule(): void
3131
*/
3232
public function implementsRenderable(): void
3333
{
34-
$subject = new AtRuleBlockList('');
34+
$subject = new AtRuleBlockList('supports');
3535

3636
self::assertInstanceOf(Renderable::class, $subject);
3737
}
@@ -41,7 +41,7 @@ public function implementsRenderable(): void
4141
*/
4242
public function implementsCommentable(): void
4343
{
44-
$subject = new AtRuleBlockList('');
44+
$subject = new AtRuleBlockList('supports');
4545

4646
self::assertInstanceOf(Commentable::class, $subject);
4747
}
@@ -51,7 +51,7 @@ public function implementsCommentable(): void
5151
*/
5252
public function atRuleNameReturnsTypeProvidedToConstructor(): void
5353
{
54-
$type = 'foo';
54+
$type = 'keyframes';
5555

5656
$subject = new AtRuleBlockList($type);
5757

@@ -63,7 +63,7 @@ public function atRuleNameReturnsTypeProvidedToConstructor(): void
6363
*/
6464
public function getLineNoByDefaultReturnsZero(): void
6565
{
66-
$subject = new AtRuleBlockList('');
66+
$subject = new AtRuleBlockList('supports');
6767

6868
self::assertSame(0, $subject->getLineNo());
6969
}
@@ -73,7 +73,7 @@ public function getLineNoByDefaultReturnsZero(): void
7373
*/
7474
public function atRuleArgsByDefaultReturnsEmptyString(): void
7575
{
76-
$subject = new AtRuleBlockList('');
76+
$subject = new AtRuleBlockList('supports');
7777

7878
self::assertSame('', $subject->atRuleArgs());
7979
}
@@ -107,7 +107,7 @@ public function getLineNoReturnsLineNumberProvidedToConstructor(): void
107107
*/
108108
public function isRootListAlwaysReturnsFalse(): void
109109
{
110-
$subject = new AtRuleBlockList('');
110+
$subject = new AtRuleBlockList('supports');
111111

112112
self::assertFalse($subject->isRootList());
113113
}

0 commit comments

Comments
 (0)