ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ilSkinStyleLessCommentTest.php
Go to the documentation of this file.
1
<?
php
2
3
include_once(
"./Services/Style/System/classes/Less/class.ilSystemStyleLessComment.php"
);
4
10
class
ilSkinStyleLessCommentTest
extends
PHPUnit_Framework_TestCase
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
}
ilSkinStyleLessCommentTest\testToString
testToString()
Definition:
ilSkinStyleLessCommentTest.php:26
ilSkinStyleLessCommentTest\testSetters
testSetters()
Definition:
ilSkinStyleLessCommentTest.php:18
PHPUnit_Framework_TestCase
$comment
$comment
Definition:
buildRTE.php:83
ilSystemStyleLessComment
Capsules all data which is neither part of a variable or category structure in the less file...
Definition:
class.ilSystemStyleLessComment.php:15
ilSkinStyleLessCommentTest\testConstruct
testConstruct()
Definition:
ilSkinStyleLessCommentTest.php:12
php
ilSkinStyleLessCommentTest
Definition:
ilSkinStyleLessCommentTest.php:10
Services
Style
System
test
ilSkinStyleLessCommentTest.php
Generated on Thu Jan 16 2025 19:02:31 for ILIAS by
1.8.13 (using
Doxyfile
)