◆ setUp()
TransformationsCustomTest::setUp |
( |
| ) |
|
|
protected |
◆ tearDown()
TransformationsCustomTest::tearDown |
( |
| ) |
|
|
protected |
◆ testApplyToWithValidValueReturnsAnOkResult()
TransformationsCustomTest::testApplyToWithValidValueReturnsAnOkResult |
( |
| ) |
|
◆ 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
◆ $f
Refinery TransformationsCustomTest::$f |
|
private |
◆ TEST_STRING
const TransformationsCustomTest::TEST_STRING = "Test" |
|
private |
The documentation for this class was generated from the following file: