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 3
3
namespace Sabberworm \CSS \Tests \CSSList ;
4
4
5
5
use PHPUnit \Framework \TestCase ;
6
+ use Sabberworm \CSS \Comment \Commentable ;
7
+ use Sabberworm \CSS \CSSList \AtRuleBlockList ;
6
8
use Sabberworm \CSS \Parser ;
9
+ use Sabberworm \CSS \Renderable ;
7
10
8
11
/**
9
12
* @covers \Sabberworm\CSS\CSSList\AtRuleBlockList
10
13
*/
11
14
class AtRuleBlockListTest extends TestCase
12
15
{
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
+
13
46
/**
14
47
* @return array<string, array<int, string>>
15
48
*/
Original file line number Diff line number Diff line change 3
3
namespace Sabberworm \CSS \Tests \CSSList ;
4
4
5
5
use PHPUnit \Framework \TestCase ;
6
+ use Sabberworm \CSS \Comment \Commentable ;
6
7
use Sabberworm \CSS \CSSList \Document ;
8
+ use Sabberworm \CSS \Renderable ;
7
9
use Sabberworm \CSS \RuleSet \DeclarationBlock ;
8
10
9
11
/**
@@ -21,6 +23,22 @@ protected function setUp()
21
23
$ this ->subject = new Document ();
22
24
}
23
25
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
+
24
42
/**
25
43
* @test
26
44
*/
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