91 {
92 $add_label = $this->f->container()->addLabels(self::$labels);
93
94 $raised = false;
95 try {
96 $with = null;
97 $next_with = $add_label($with);
98 }
catch (InvalidArgumentException
$e) {
99 $raised = true;
100 }
101 $this->assertTrue($raised);
102
103 $raised = false;
104 try {
105 $without = array(1, 2, 3, 4);
106 $with = $add_label($without);
107 }
catch (InvalidArgumentException
$e) {
108 $raised = true;
109 }
110 $this->assertTrue($raised);
111
112 $raised = false;
113 try {
114 $without = "1, 2, 3";
115 $with = $add_label($without);
116 }
catch (InvalidArgumentException
$e) {
117 $raised = true;
118 }
119 $this->assertTrue($raised);
120
121 $raised = false;
122 try {
124 $with = $add_label($std_class);
125 }
catch (InvalidArgumentException
$e) {
126 $raised = true;
127 }
128 $this->assertTrue($raised);
129 }