ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSkinStyleLessCommentTest.php
Go to the documentation of this file.
1<?php
2
3include_once("./Services/Style/System/classes/Less/class.ilSystemStyleLessComment.php");
4
11{
12 public function testConstruct()
13 {
14 $comment = new ilSystemStyleLessComment("comment");
15 $this->assertEquals("comment", $comment->getComment());
16 }
17
18 public function testSetters()
19 {
20 $comment = new ilSystemStyleLessComment("name", "comment");
21
22 $comment->setComment("newComment");
23 $this->assertEquals("newComment", $comment->getComment());
24 }
25
26 public function testToString()
27 {
28 $comment = new ilSystemStyleLessComment("comment");
29
30 $this->assertEquals("comment\n", (string) $comment);
31 }
32}
$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.