ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSystemStyleSkinStyleLessCategoryTest.php
Go to the documentation of this file.
1<?php
2
3include_once("./Services/Style/System/classes/Less/class.ilSystemStyleLessCategory.php");
4
11
12 public function testConstruct() {
13 $category = new ilSystemStyleLessCategory("name", "comment");
14 $this->assertEquals("name", $category->getName());
15 $this->assertEquals("comment", $category->getComment());
16 }
17
18 public function testSetters() {
19 $category = new ilSystemStyleLessCategory("name", "comment");
20
21 $category->setName("newName");
22 $category->setComment("newComment");
23
24 $this->assertEquals("newName", $category->getName());
25 $this->assertEquals("newComment", $category->getComment());
26 }
27
28 public function testToString(){
29 $category = new ilSystemStyleLessCategory("name", "comment");
30
31 $this->assertEquals("//== name\n//\n//## comment\n",(string)$category);
32 }
33
34}
An exception for terminatinating execution or to throw for unit testing.
Capsules data of a less category in the variables to less file.