Conditions | 1 |
Paths | 1 |
Total Lines | 188 |
Code Lines | 112 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
1 | <?php |
||
174 | public function testToArray() { |
||
175 | |||
176 | $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend(true); |
||
177 | |||
178 | $obj->setAlign("right"); |
||
179 | |||
180 | $res1 = ["align" => "right"]; |
||
181 | $this->assertEquals($res1, $obj->toArray()); |
||
182 | |||
183 | $obj->setBackgroundColor("930f2a43179a7ae5fc25ed873223e99f"); |
||
184 | |||
185 | $res2 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f"]; |
||
186 | $this->assertEquals($res2, $obj->toArray()); |
||
187 | |||
188 | $obj->setBorderColor("97da935a74593c55d78be9d1295aa994"); |
||
189 | |||
190 | $res3 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994"]; |
||
191 | $this->assertEquals($res3, $obj->toArray()); |
||
192 | |||
193 | $obj->setBorderRadius(14); |
||
194 | |||
195 | $res4 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14]; |
||
196 | $this->assertEquals($res4, $obj->toArray()); |
||
197 | |||
198 | $obj->setBorderWidth(6); |
||
199 | |||
200 | $res5 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6]; |
||
201 | $this->assertEquals($res5, $obj->toArray()); |
||
202 | |||
203 | $obj->setEnabled(0); |
||
204 | |||
205 | $res6 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0]; |
||
206 | $this->assertEquals($res6, $obj->toArray()); |
||
207 | |||
208 | $obj->setFloating(0); |
||
209 | |||
210 | $res7 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0]; |
||
211 | $this->assertEquals($res7, $obj->toArray()); |
||
212 | |||
213 | $obj->setItemDistance(77); |
||
214 | |||
215 | $res8 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77]; |
||
216 | $this->assertEquals($res8, $obj->toArray()); |
||
217 | |||
218 | $obj->setItemHiddenStyle(["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"]); |
||
219 | |||
220 | $res9 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"]]; |
||
221 | $this->assertEquals($res9, $obj->toArray()); |
||
222 | |||
223 | $obj->setItemHoverStyle(["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"]); |
||
224 | |||
225 | $res10 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"]]; |
||
226 | $this->assertEquals($res10, $obj->toArray()); |
||
227 | |||
228 | $obj->setItemMarginBottom(99); |
||
229 | |||
230 | $res11 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99]; |
||
231 | $this->assertEquals($res11, $obj->toArray()); |
||
232 | |||
233 | $obj->setItemMarginTop(52); |
||
234 | |||
235 | $res12 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52]; |
||
236 | $this->assertEquals($res12, $obj->toArray()); |
||
237 | |||
238 | $obj->setItemStyle(["itemStyle" => "5428035d6f7481541cf715e0f3e29604"]); |
||
239 | |||
240 | $res13 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"]]; |
||
241 | $this->assertEquals($res13, $obj->toArray()); |
||
242 | |||
243 | $obj->setItemWidth(18); |
||
244 | |||
245 | $res14 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18]; |
||
246 | $this->assertEquals($res14, $obj->toArray()); |
||
247 | |||
248 | $obj->setLabelFormat("201bbcba25ee83a321df388c0f4a889d"); |
||
249 | |||
250 | $res15 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d"]; |
||
251 | $this->assertEquals($res15, $obj->toArray()); |
||
252 | |||
253 | $obj->setLabelFormatter("9078f7787367cf94543b3bc9e92d9692"); |
||
254 | |||
255 | $res16 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692"]; |
||
256 | $this->assertEquals($res16, $obj->toArray()); |
||
257 | |||
258 | $obj->setLayout("vertical"); |
||
259 | |||
260 | $res17 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical"]; |
||
261 | $this->assertEquals($res17, $obj->toArray()); |
||
262 | |||
263 | $obj->setLineHeight(9); |
||
264 | |||
265 | $res18 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9]; |
||
266 | $this->assertEquals($res18, $obj->toArray()); |
||
267 | |||
268 | $obj->setMargin(39); |
||
269 | |||
270 | $res19 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39]; |
||
271 | $this->assertEquals($res19, $obj->toArray()); |
||
272 | |||
273 | $obj->setMaxHeight(20); |
||
274 | |||
275 | $res20 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20]; |
||
276 | $this->assertEquals($res20, $obj->toArray()); |
||
277 | |||
278 | $obj->setNavigation(new \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsNavigation()); |
||
279 | |||
280 | $res21 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => []]; |
||
281 | $this->assertEquals($res21, $obj->toArray()); |
||
282 | |||
283 | $obj->setPadding(59); |
||
284 | |||
285 | $res22 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59]; |
||
286 | $this->assertEquals($res22, $obj->toArray()); |
||
287 | |||
288 | $obj->setReversed(0); |
||
289 | |||
290 | $res23 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0]; |
||
291 | $this->assertEquals($res23, $obj->toArray()); |
||
292 | |||
293 | $obj->setRtl(1); |
||
294 | |||
295 | $res24 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1]; |
||
296 | $this->assertEquals($res24, $obj->toArray()); |
||
297 | |||
298 | $obj->setShadow(0); |
||
299 | |||
300 | $res25 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0]; |
||
301 | $this->assertEquals($res25, $obj->toArray()); |
||
302 | |||
303 | $obj->setSquareSymbol(1); |
||
304 | |||
305 | $res26 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1]; |
||
306 | $this->assertEquals($res26, $obj->toArray()); |
||
307 | |||
308 | $obj->setStyle(["style" => "a1b01e734b573fca08eb1a65e6df9a38"]); |
||
309 | |||
310 | $res27 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"]]; |
||
311 | $this->assertEquals($res27, $obj->toArray()); |
||
312 | |||
313 | $obj->setSymbolHeight(41); |
||
314 | |||
315 | $res28 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41]; |
||
316 | $this->assertEquals($res28, $obj->toArray()); |
||
317 | |||
318 | $obj->setSymbolPadding(3); |
||
319 | |||
320 | $res29 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3]; |
||
321 | $this->assertEquals($res29, $obj->toArray()); |
||
322 | |||
323 | $obj->setSymbolRadius(88); |
||
324 | |||
325 | $res30 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88]; |
||
326 | $this->assertEquals($res30, $obj->toArray()); |
||
327 | |||
328 | $obj->setSymbolWidth(72); |
||
329 | |||
330 | $res31 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88, "symbolWidth" => 72]; |
||
331 | $this->assertEquals($res31, $obj->toArray()); |
||
332 | |||
333 | $obj->setTitle(new \WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle()); |
||
334 | |||
335 | $res32 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88, "symbolWidth" => 72, "title" => []]; |
||
336 | $this->assertEquals($res32, $obj->toArray()); |
||
337 | |||
338 | $obj->setUseHTML(1); |
||
339 | |||
340 | $res33 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88, "symbolWidth" => 72, "title" => [], "useHTML" => 1]; |
||
341 | $this->assertEquals($res33, $obj->toArray()); |
||
342 | |||
343 | $obj->setVerticalAlign("bottom"); |
||
344 | |||
345 | $res34 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88, "symbolWidth" => 72, "title" => [], "useHTML" => 1, "verticalAlign" => "bottom"]; |
||
346 | $this->assertEquals($res34, $obj->toArray()); |
||
347 | |||
348 | $obj->setWidth(71); |
||
349 | |||
350 | $res35 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88, "symbolWidth" => 72, "title" => [], "useHTML" => 1, "verticalAlign" => "bottom", "width" => 71]; |
||
351 | $this->assertEquals($res35, $obj->toArray()); |
||
352 | |||
353 | $obj->setX(49); |
||
354 | |||
355 | $res36 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88, "symbolWidth" => 72, "title" => [], "useHTML" => 1, "verticalAlign" => "bottom", "width" => 71, "x" => 49]; |
||
356 | $this->assertEquals($res36, $obj->toArray()); |
||
357 | |||
358 | $obj->setY(30); |
||
359 | |||
360 | $res37 = ["align" => "right", "backgroundColor" => "930f2a43179a7ae5fc25ed873223e99f", "borderColor" => "97da935a74593c55d78be9d1295aa994", "borderRadius" => 14, "borderWidth" => 6, "enabled" => 0, "floating" => 0, "itemDistance" => 77, "itemHiddenStyle" => ["itemHiddenStyle" => "85396c3e708111e2ae389e4a131b1ff8"], "itemHoverStyle" => ["itemHoverStyle" => "91e12ccdec8780b32ab867d3568c2b0c"], "itemMarginBottom" => 99, "itemMarginTop" => 52, "itemStyle" => ["itemStyle" => "5428035d6f7481541cf715e0f3e29604"], "itemWidth" => 18, "labelFormat" => "201bbcba25ee83a321df388c0f4a889d", "labelFormatter" => "9078f7787367cf94543b3bc9e92d9692", "layout" => "vertical", "lineHeight" => 9, "margin" => 39, "maxHeight" => 20, "navigation" => [], "padding" => 59, "reversed" => 0, "rtl" => 1, "shadow" => 0, "squareSymbol" => 1, "style" => ["style" => "a1b01e734b573fca08eb1a65e6df9a38"], "symbolHeight" => 41, "symbolPadding" => 3, "symbolRadius" => 88, "symbolWidth" => 72, "title" => [], "useHTML" => 1, "verticalAlign" => "bottom", "width" => 71, "x" => 49, "y" => 30]; |
||
361 | $this->assertEquals($res37, $obj->toArray()); |
||
362 | } |
||
365 |