ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSkinStyleLessCommentTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 require_once('libs/composer/vendor/autoload.php');
22 
24 
25 class 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...