File tree Expand file tree Collapse file tree 3 files changed +100
-0
lines changed Expand file tree Collapse file tree 3 files changed +100
-0
lines changed Original file line number Diff line number Diff line change 33namespace Sabberworm \CSS \Tests \CSSList ;
44
55use PHPUnit \Framework \TestCase ;
6+ use Sabberworm \CSS \Comment \Commentable ;
7+ use Sabberworm \CSS \CSSList \AtRuleBlockList ;
68use Sabberworm \CSS \Parser ;
9+ use Sabberworm \CSS \Renderable ;
710
811/**
912 * @covers \Sabberworm\CSS\CSSList\AtRuleBlockList
1013 */
1114class AtRuleBlockListTest extends TestCase
1215{
16+ /**
17+ * @test
18+ */
19+ public function implementsAtRule ()
20+ {
21+ $ subject = new AtRuleBlockList ('' );
22+
23+ self ::assertInstanceOf (AtRuleBlockList::class, $ subject );
24+ }
25+
26+ /**
27+ * @test
28+ */
29+ public function implementsRenderable ()
30+ {
31+ $ subject = new AtRuleBlockList ('' );
32+
33+ self ::assertInstanceOf (Renderable::class, $ subject );
34+ }
35+
36+ /**
37+ * @test
38+ */
39+ public function implementsCommentable ()
40+ {
41+ $ subject = new AtRuleBlockList ('' );
42+
43+ self ::assertInstanceOf (Commentable::class, $ subject );
44+ }
45+
1346 /**
1447 * @return array<string, array<int, string>>
1548 */
Original file line number Diff line number Diff line change 33namespace Sabberworm \CSS \Tests \CSSList ;
44
55use PHPUnit \Framework \TestCase ;
6+ use Sabberworm \CSS \Comment \Commentable ;
67use Sabberworm \CSS \CSSList \Document ;
8+ use Sabberworm \CSS \Renderable ;
79use Sabberworm \CSS \RuleSet \DeclarationBlock ;
810
911/**
@@ -21,6 +23,22 @@ protected function setUp()
2123 $ this ->subject = new Document ();
2224 }
2325
26+ /**
27+ * @test
28+ */
29+ public function implementsRenderable ()
30+ {
31+ self ::assertInstanceOf (Renderable::class, $ this ->subject );
32+ }
33+
34+ /**
35+ * @test
36+ */
37+ public function implementsCommentable ()
38+ {
39+ self ::assertInstanceOf (Commentable::class, $ this ->subject );
40+ }
41+
2442 /**
2543 * @test
2644 */
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Sabberworm \CSS \Tests \CSSList ;
4+
5+ use PHPUnit \Framework \TestCase ;
6+ use Sabberworm \CSS \Comment \Commentable ;
7+ use Sabberworm \CSS \CSSList \KeyFrame ;
8+ use Sabberworm \CSS \Property \AtRule ;
9+ use Sabberworm \CSS \Renderable ;
10+
11+ /**
12+ * @covers \Sabberworm\CSS\CSSList\KeyFrame
13+ */
14+ class KeyFrameTest extends TestCase
15+ {
16+ /**
17+ * @var KeyFrame
18+ */
19+ protected $ subject ;
20+
21+ protected function setUp ()
22+ {
23+ $ this ->subject = new KeyFrame ();
24+ }
25+
26+ /**
27+ * @test
28+ */
29+ public function implementsAtRule ()
30+ {
31+ self ::assertInstanceOf (AtRule::class, $ this ->subject );
32+ }
33+
34+ /**
35+ * @test
36+ */
37+ public function implementsRenderable ()
38+ {
39+ self ::assertInstanceOf (Renderable::class, $ this ->subject );
40+ }
41+
42+ /**
43+ * @test
44+ */
45+ public function implementsCommentable ()
46+ {
47+ self ::assertInstanceOf (Commentable::class, $ this ->subject );
48+ }
49+ }
You can’t perform that action at this time.
0 commit comments