Skip to content

Commit 1a2eab9

Browse files
committed
[TASK] Use a per-test subject in KeyFrameTest
Similar to #963.
1 parent 981464c commit 1a2eab9

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

tests/Unit/CSSList/KeyFrameTest.php

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,33 @@
1515
*/
1616
final class KeyFrameTest extends TestCase
1717
{
18-
/**
19-
* @var KeyFrame
20-
*/
21-
private $subject;
22-
23-
protected function setUp(): void
24-
{
25-
$this->subject = new KeyFrame();
26-
}
27-
2818
/**
2919
* @test
3020
*/
3121
public function implementsAtRule(): void
3222
{
33-
self::assertInstanceOf(AtRule::class, $this->subject);
23+
$subject = new KeyFrame();
24+
25+
self::assertInstanceOf(AtRule::class, $subject);
3426
}
3527

3628
/**
3729
* @test
3830
*/
3931
public function implementsRenderable(): void
4032
{
41-
self::assertInstanceOf(Renderable::class, $this->subject);
33+
$subject = new KeyFrame();
34+
35+
self::assertInstanceOf(Renderable::class, $subject);
4236
}
4337

4438
/**
4539
* @test
4640
*/
4741
public function implementsCommentable(): void
4842
{
49-
self::assertInstanceOf(Commentable::class, $this->subject);
43+
$subject = new KeyFrame();
44+
45+
self::assertInstanceOf(Commentable::class, $subject);
5046
}
5147
}

0 commit comments

Comments
 (0)