|
| static array | B => 2, "C" => 3] |
| |
Definition at line 26 of file AddLabelTest.php.
◆ setUp()
Definition at line 38 of file AddLabelTest.php.
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);
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...
◆ tearDown()
| AddLabelTest::tearDown |
( |
| ) |
|
|
protected |
◆ testInvoke()
| AddLabelTest::testInvoke |
( |
| ) |
|
Definition at line 98 of file AddLabelTest.php.
References $add_label.
100 $add_label = $this->f->container()->addLabels(self::$labels);
102 $this->assertEquals(self::$result_array, $with);
Transformation $add_label
◆ testInvokeFails()
| AddLabelTest::testInvokeFails |
( |
| ) |
|
Definition at line 105 of file AddLabelTest.php.
References $add_label, and Vendor\Package\$e.
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);
Transformation $add_label
◆ testTransform()
| AddLabelTest::testTransform |
( |
| ) |
|
Definition at line 53 of file AddLabelTest.php.
55 $with = $this->add_label->transform(self::$test_array);
56 $this->assertEquals(self::$result_array, $with);
◆ testTransformFails()
| AddLabelTest::testTransformFails |
( |
| ) |
|
Definition at line 59 of file AddLabelTest.php.
References Vendor\Package\$e.
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);
◆ $add_label
◆ $f
| Refinery AddLabelTest::$f |
|
private |
◆ $labels
| array AddLabelTest::$labels = ["A", "B", "C"] |
|
staticprivate |
◆ $result_array
| array AddLabelTest::$result_array = ["A" => 1 |
|
staticprivate |
◆ $test_array
| array AddLabelTest::$test_array = [1, 2, 3] |
|
staticprivate |
| array AddLabelTest::B => 2, "C" => 3] |
|
static |
The documentation for this class was generated from the following file: