19 declare(strict_types=1);
    33     protected function setUp(): void
    35         $language = $this->createMock(
ILIAS\Language\Language::class);
    38         $this->
custom = $this->f->custom()->transformation(
    40                 if (!is_string($value)) {
    56         $result = $this->
custom->transform(self::TEST_STRING);
    57         $this->assertEquals(self::TEST_STRING, $result);
    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);
    93         $custom = $this->f->custom()->transformation(
    95                 if (!is_string($value)) {
   102         $result = 
$custom(self::TEST_STRING);
   103         $this->assertEquals(self::TEST_STRING, $result);
   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);
   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());
 
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.