Skip to content

Commit 3ab40c6

Browse files
authored
[BUGFIX] Correct AtRuleBlockListTest::implementsAtRule() (#1238)
Use the interface type to be tested for in the assertion, not the type of the object itself.
1 parent 4e107ac commit 3ab40c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Unit/CSSList/AtRuleBlockListTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Sabberworm\CSS\CSSList\AtRuleBlockList;
1010
use Sabberworm\CSS\CSSList\CSSBlockList;
1111
use Sabberworm\CSS\CSSList\CSSList;
12+
use Sabberworm\CSS\Property\AtRule;
1213
use Sabberworm\CSS\Renderable;
1314

1415
/**
@@ -25,7 +26,7 @@ public function implementsAtRule(): void
2526
{
2627
$subject = new AtRuleBlockList('supports');
2728

28-
self::assertInstanceOf(AtRuleBlockList::class, $subject);
29+
self::assertInstanceOf(AtRule::class, $subject);
2930
}
3031

3132
/**

0 commit comments

Comments
 (0)