◆ setUp()
TransformationsCustomTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 33 of file TransformationsCustomTest.php.
References ILIAS\UI\examples\Chart\Bar\Horizontal\custom().
35 $language = $this->createMock(
ILIAS\Language\Language::class);
38 $this->
custom = $this->f->custom()->transformation(
40 if (!is_string($value)) {
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
custom()
expected output: > ILIAS shows a base horizontal bar chart but customized with e.g.
◆ tearDown()
TransformationsCustomTest::tearDown |
( |
| ) |
|
|
protected |
◆ testApplyToWithValidValueReturnsAnOkResult()
TransformationsCustomTest::testApplyToWithValidValueReturnsAnOkResult |
( |
| ) |
|
Definition at line 146 of file TransformationsCustomTest.php.
References ILIAS\UI\examples\Chart\Bar\Horizontal\custom().
149 $valueObject = $factory->ok(self::TEST_STRING);
151 $resultObject = $this->
custom->applyTo($valueObject);
153 $this->assertEquals(self::TEST_STRING, $resultObject->value());
154 $this->assertFalse($resultObject->isError());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
custom()
expected output: > ILIAS shows a base horizontal bar chart but customized with e.g.
◆ testInvoke()
TransformationsCustomTest::testInvoke |
( |
| ) |
|
◆ testInvokeFails()
TransformationsCustomTest::testInvokeFails |
( |
| ) |
|
Definition at line 106 of file TransformationsCustomTest.php.
References $custom, and Vendor\Package\$e.
108 $custom = $this->f->custom()->transformation(
110 if (!is_string($value)) {
121 $this->assertEquals(
"'array' is not a string.", $e->getMessage());
124 $this->assertTrue($raised);
128 $lower_string =
$custom(12345);
130 $this->assertEquals(
"'integer' is not a string.", $e->getMessage());
133 $this->assertTrue($raised);
138 $lower_string =
$custom($std_class);
140 $this->assertEquals(
"'object' is not a string.", $e->getMessage());
143 $this->assertTrue($raised);
◆ testTransform()
TransformationsCustomTest::testTransform |
( |
| ) |
|
◆ testTransformFails()
TransformationsCustomTest::testTransformFails |
( |
| ) |
|
Definition at line 60 of file TransformationsCustomTest.php.
References Vendor\Package\$e, and ILIAS\UI\examples\Chart\Bar\Horizontal\custom().
64 $lower_string = $this->
custom->transform([]);
66 $this->assertEquals(
"'array' is not a string.", $e->getMessage());
69 $this->assertTrue($raised);
73 $lower_string = $this->
custom->transform(12345);
75 $this->assertEquals(
"'integer' is not a string.", $e->getMessage());
78 $this->assertTrue($raised);
83 $lower_string = $this->
custom->transform($std_class);
85 $this->assertEquals(
"'object' is not a string.", $e->getMessage());
88 $this->assertTrue($raised);
custom()
expected output: > ILIAS shows a base horizontal bar chart but customized with e.g.
◆ $custom
◆ $f
Refinery TransformationsCustomTest::$f |
|
private |
◆ TEST_STRING
const TransformationsCustomTest::TEST_STRING = "Test" |
|
private |
The documentation for this class was generated from the following file: