20 $this->f =
new Transformation\Factory();
21 $this->add_label = $this->f->addLabels(self::$labels);
27 $this->add_label = null;
32 $with = $this->add_label->transform(self::$test_array);
33 $this->assertEquals(self::$result_array, $with);
41 $next_with = $this->add_label->transform($with);
45 $this->assertTrue($raised);
49 $without =
array(1, 2, 3, 4);
50 $with = $this->add_label->transform($without);
54 $this->assertTrue($raised);
59 $with = $this->add_label->transform($without);
63 $this->assertTrue($raised);
67 $std_class =
new stdClass();
68 $with = $this->add_label->transform($std_class);
72 $this->assertTrue($raised);
77 $add_label = $this->f->addLabels(self::$labels);
78 $with = $add_label(self::$test_array);
79 $this->assertEquals(self::$result_array, $with);
84 $add_label = $this->f->addLabels(self::$labels);
89 $next_with = $add_label($with);
93 $this->assertTrue($raised);
97 $without =
array(1, 2, 3, 4);
98 $with = $add_label($without);
102 $this->assertTrue($raised);
106 $without =
"1, 2, 3";
107 $with = $add_label($without);
111 $this->assertTrue($raised);
115 $std_class =
new stdClass();
116 $with = $add_label($std_class);
120 $this->assertTrue($raised);
TestCase for AddLabel transformations.
Create styles array
The data for the language used.