ILIAS  release_7 Revision v7.30-3-g800a261c036
ilSkinStyleLessCommentTest.php
Go to the documentation of this file.
1<?php
2
3include_once("./Services/Style/System/classes/Less/class.ilSystemStyleLessComment.php");
4
5use PHPUnit\Framework\TestCase;
6
12class ilSkinStyleLessCommentTest extends TestCase
13{
14 public function testConstruct()
15 {
16 $comment = new ilSystemStyleLessComment("comment");
17 $this->assertEquals("comment", $comment->getComment());
18 }
19
20 public function testSetters()
21 {
22 $comment = new ilSystemStyleLessComment("name", "comment");
23
24 $comment->setComment("newComment");
25 $this->assertEquals("newComment", $comment->getComment());
26 }
27
28 public function testToString()
29 {
30 $comment = new ilSystemStyleLessComment("comment");
31
32 $this->assertEquals("comment\n", (string) $comment);
33 }
34}
$comment
Definition: buildRTE.php:83
An exception for terminatinating execution or to throw for unit testing.
Capsules all data which is neither part of a variable or category structure in the less file.