19 declare(strict_types=1);
29 private static array
$labels = [
"A",
"B",
"C"];
38 protected function setUp(): void
41 $language = $this->createMock(
ILIAS\Language\Language::class);
43 $this->f =
new Refinery($dataFactory, $language);
44 $this->add_label = $this->f->container()->addLabels(self::$labels);
50 $this->add_label =
null;
55 $with = $this->add_label->transform(self::$test_array);
56 $this->assertEquals(self::$result_array, $with);
64 $next_with = $this->add_label->transform($with);
68 $this->assertTrue($raised);
72 $without = [1, 2, 3, 4];
73 $with = $this->add_label->transform($without);
77 $this->assertTrue($raised);
82 $with = $this->add_label->transform($without);
86 $this->assertTrue($raised);
91 $with = $this->add_label->transform($std_class);
95 $this->assertTrue($raised);
100 $add_label = $this->f->container()->addLabels(self::$labels);
102 $this->assertEquals(self::$result_array, $with);
107 $add_label = $this->f->container()->addLabels(self::$labels);
116 $this->assertTrue($raised);
120 $without = [1, 2, 3, 4];
125 $this->assertTrue($raised);
129 $without =
"1, 2, 3";
134 $this->assertTrue($raised);
143 $this->assertTrue($raised);
static array $result_array
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Transformation $add_label