ILIAS  release_8 Revision v8.25
ilSkinStyleLessCommentTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21require_once('libs/composer/vendor/autoload.php');
22
23use PHPUnit\Framework\TestCase;
24
25class ilSkinStyleLessCommentTest extends TestCase
26{
27 public function testConstruct(): void
28 {
29 $comment = new ilSystemStyleLessComment('comment');
30 $this->assertEquals('comment', $comment->getComment());
31 }
32
33 public function testSetters(): void
34 {
35 $comment = new ilSystemStyleLessComment('comment');
36
37 $comment->setComment('newComment');
38 $this->assertEquals('newComment', $comment->getComment());
39 }
40
41 public function testToString(): void
42 {
43 $comment = new ilSystemStyleLessComment('comment');
44
45 $this->assertEquals("comment\n", (string) $comment);
46 }
47}
$comment
Definition: buildRTE.php:72
Capsules all data which is neither part of a variable or category structure in the less file.