ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilSystemStyleSkinStyleLessCategoryTest.php
Go to the documentation of this file.
1
<?php
2
3
include_once(
"./Services/Style/System/classes/Less/class.ilSystemStyleLessCategory.php"
);
4
5
use
PHPUnit\Framework\TestCase
;
6
12
class
ilSystemStyleSkinStyleLessCategoryTest
extends
TestCase
13
{
14
public
function
testConstruct
()
15
{
16
$category =
new
ilSystemStyleLessCategory
(
"name"
,
"comment"
);
17
$this->assertEquals(
"name"
, $category->getName());
18
$this->assertEquals(
"comment"
, $category->getComment());
19
}
20
21
public
function
testSetters
()
22
{
23
$category =
new
ilSystemStyleLessCategory
(
"name"
,
"comment"
);
24
25
$category->setName(
"newName"
);
26
$category->setComment(
"newComment"
);
27
28
$this->assertEquals(
"newName"
, $category->getName());
29
$this->assertEquals(
"newComment"
, $category->getComment());
30
}
31
32
public
function
testToString
()
33
{
34
$category =
new
ilSystemStyleLessCategory
(
"name"
,
"comment"
);
35
36
$this->assertEquals(
"//== name\n//\n//## comment\n"
, (
string
) $category);
37
}
38
}
ilSystemStyleLessCategory
Capsules data of a less category in the variables to less file.
Definition:
class.ilSystemStyleLessCategory.php:16
ilSystemStyleSkinStyleLessCategoryTest\testToString
testToString()
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:32
ilSystemStyleSkinStyleLessCategoryTest\testConstruct
testConstruct()
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:14
ilSystemStyleSkinStyleLessCategoryTest
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:12
ilSystemStyleSkinStyleLessCategoryTest\testSetters
testSetters()
Definition:
ilSystemStyleSkinStyleLessCategoryTest.php:21
TestCase
Services
Style
System
test
ilSystemStyleSkinStyleLessCategoryTest.php
Generated on Sun Apr 6 2025 20:01:31 for ILIAS by
1.8.13 (using
Doxyfile
)