3 include_once(
"./Services/Style/System/classes/Less/class.ilSystemStyleLessVariable.php");
15 $this->assertEquals(
"name", $variable->getName());
16 $this->assertEquals(
"value", $variable->getValue());
17 $this->assertEquals(
"comment", $variable->getComment());
18 $this->assertEquals(
"category_name", $variable->getCategoryName());
19 $this->assertEquals([
"references_id"], $variable->getReferences());
26 $variable->setName(
"newName");
27 $variable->setValue(
"newValue");
28 $variable->setComment(
"newComment");
29 $variable->setCategoryName(
"new_category_name");
30 $variable->setReferences([
"new_references_id"]);
32 $this->assertEquals(
"newName", $variable->getName());
33 $this->assertEquals(
"newValue", $variable->getValue());
34 $this->assertEquals(
"newComment", $variable->getComment());
35 $this->assertEquals(
"new_category_name", $variable->getCategoryName());
36 $this->assertEquals([
"new_references_id"], $variable->getReferences());
43 $variable->setValue(
"\"../../libs/bower/bower_components/bootstrap/fonts/\"");
44 $this->assertEquals(
"\"../../../../libs/bower/bower_components/bootstrap/fonts/\"", $variable->getValue());
51 $variable->setValue(
"\"somePath\"");
52 $this->assertEquals(
"\"somePath\"", $variable->getValue());
54 $variable->setValue(
"somePath");
55 $this->assertEquals(
"\"somePath\"", $variable->getValue());
58 $variable->setValue(
"\"somePath");
59 $this->assertEquals(
"\"somePath\"", $variable->getValue());
62 $variable->setValue(
"somePath\"");
63 $this->assertEquals(
"\"somePath\"", $variable->getValue());
69 $this->assertEquals(
"//** comment\n@name:\t\tvalue;\n", (
string) $variable);
testIconFontPathQuotation()