Passed
Push — master ( 802754...f898ad )
by WEBEWEB
07:59 queued 25s
created

HighchartsLegendTest::testToArray()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 188
Code Lines 112

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 112
nc 1
nop 0
dl 0
loc 188
rs 8.2857
c 0
b 0
f 0

How to fix   Long Method   

Long Method

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:

1
<?php
2
3
/**
4
 * This file is part of the highcharts-bundle package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\HighchartsBundle\Tests\API\Chart;
13
14
use PHPUnit_Framework_TestCase;
15
16
/**
17
 * Highcharts legend test.
18
 *
19
 * @author webeweb <https://github.com/webeweb/>
20
 * @package WBW\Bundle\HighchartsBundle\Tests\API\Chart
21
 * @version 5.0.14
22
 */
23
final class HighchartsLegendTest extends PHPUnit_Framework_TestCase {
24
25
    /**
26
     * Tests the __construct() method.
27
     *
28
     * @return void
29
     */
30
    public function testConstructor() {
31
32
        $obj1 = new \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend(true);
33
34
        $this->assertEquals(null, $obj1->getAlign());
35
        $this->assertEquals(null, $obj1->getBackgroundColor());
36
        $this->assertEquals(null, $obj1->getBorderColor());
37
        $this->assertEquals(null, $obj1->getBorderRadius());
38
        $this->assertEquals(null, $obj1->getBorderWidth());
39
        $this->assertEquals(null, $obj1->getEnabled());
40
        $this->assertEquals(null, $obj1->getFloating());
41
        $this->assertEquals(null, $obj1->getItemDistance());
42
        $this->assertEquals(null, $obj1->getItemHiddenStyle());
43
        $this->assertEquals(null, $obj1->getItemHoverStyle());
44
        $this->assertEquals(null, $obj1->getItemMarginBottom());
45
        $this->assertEquals(null, $obj1->getItemMarginTop());
46
        $this->assertEquals(null, $obj1->getItemStyle());
47
        $this->assertEquals(null, $obj1->getItemWidth());
48
        $this->assertEquals(null, $obj1->getLabelFormat());
49
        $this->assertEquals(null, $obj1->getLabelFormatter());
50
        $this->assertEquals(null, $obj1->getLayout());
51
        $this->assertEquals(null, $obj1->getLineHeight());
52
        $this->assertEquals(null, $obj1->getMargin());
53
        $this->assertEquals(null, $obj1->getMaxHeight());
54
        $this->assertEquals(null, $obj1->getNavigation());
55
        $this->assertEquals(null, $obj1->getPadding());
56
        $this->assertEquals(null, $obj1->getReversed());
57
        $this->assertEquals(null, $obj1->getRtl());
58
        $this->assertEquals(null, $obj1->getShadow());
59
        $this->assertEquals(null, $obj1->getSquareSymbol());
60
        $this->assertEquals(null, $obj1->getStyle());
61
        $this->assertEquals(null, $obj1->getSymbolHeight());
62
        $this->assertEquals(null, $obj1->getSymbolPadding());
63
        $this->assertEquals(null, $obj1->getSymbolRadius());
64
        $this->assertEquals(null, $obj1->getSymbolWidth());
65
        $this->assertEquals(null, $obj1->getTitle());
66
        $this->assertEquals(null, $obj1->getUseHTML());
67
        $this->assertEquals(null, $obj1->getVerticalAlign());
68
        $this->assertEquals(null, $obj1->getWidth());
69
        $this->assertEquals(null, $obj1->getX());
70
        $this->assertEquals(null, $obj1->getY());
71
72
        $obj0 = new \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend(false);
73
74
        $this->assertEquals("center", $obj0->getAlign());
75
        $this->assertEquals(null, $obj0->getBackgroundColor());
76
        $this->assertEquals("#999999", $obj0->getBorderColor());
77
        $this->assertEquals(0, $obj0->getBorderRadius());
78
        $this->assertEquals(0, $obj0->getBorderWidth());
79
        $this->assertEquals(true, $obj0->getEnabled());
80
        $this->assertEquals(false, $obj0->getFloating());
81
        $this->assertEquals(20, $obj0->getItemDistance());
82
        $this->assertEquals(["color" => "#cccccc"], $obj0->getItemHiddenStyle());
83
        $this->assertEquals(["color" => "#000000"], $obj0->getItemHoverStyle());
84
        $this->assertEquals(0, $obj0->getItemMarginBottom());
85
        $this->assertEquals(0, $obj0->getItemMarginTop());
86
        $this->assertEquals(["color" => "#333333", "cursor" => "pointer", "fontSize" => "12px", "fontWeight" => "bold", "textOverflow" => "ellipsis"], $obj0->getItemStyle());
87
        $this->assertEquals(null, $obj0->getItemWidth());
88
        $this->assertEquals("{name}", $obj0->getLabelFormat());
89
        $this->assertEquals(null, $obj0->getLabelFormatter());
90
        $this->assertEquals("horizontal", $obj0->getLayout());
91
        $this->assertEquals(16, $obj0->getLineHeight());
92
        $this->assertEquals(12, $obj0->getMargin());
93
        $this->assertEquals(null, $obj0->getMaxHeight());
94
        $this->assertEquals(null, $obj0->getNavigation());
95
        $this->assertEquals(8, $obj0->getPadding());
96
        $this->assertEquals(false, $obj0->getReversed());
97
        $this->assertEquals(false, $obj0->getRtl());
98
        $this->assertEquals(false, $obj0->getShadow());
99
        $this->assertEquals(true, $obj0->getSquareSymbol());
100
        $this->assertEquals(null, $obj0->getStyle());
101
        $this->assertEquals(null, $obj0->getSymbolHeight());
102
        $this->assertEquals(5, $obj0->getSymbolPadding());
103
        $this->assertEquals(null, $obj0->getSymbolRadius());
104
        $this->assertEquals(null, $obj0->getSymbolWidth());
105
        $this->assertEquals(null, $obj0->getTitle());
106
        $this->assertEquals(false, $obj0->getUseHTML());
107
        $this->assertEquals("bottom", $obj0->getVerticalAlign());
108
        $this->assertEquals(null, $obj0->getWidth());
109
        $this->assertEquals(0, $obj0->getX());
110
        $this->assertEquals(0, $obj0->getY());
111
    }
112
113
    /**
114
     * Tests the clear() method.
115
     *
116
     * @return void
117
     */
118
    public function testClear() {
119
120
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend(false);
121
122
        $obj->newNavigation();
123
        $obj->newTitle();
124
125
        $obj->clear();
126
127
        $res = ["navigation" => [], "title" => []];
128
        $this->assertEquals($res, $obj->toArray());
129
    }
130
131
    /**
132
     * Tests the jsonSerialize() method.
133
     *
134
     * @return void
135
     */
136
    public function testJsonSerialize() {
137
138
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend(true);
139
140
        $this->assertEquals([], $obj->jsonSerialize());
141
    }
142
143
    /**
144
     * Tests the newNavigation() method.
145
     *
146
     * @return void.
147
     */
148
    public function testNewNavigation() {
149
150
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend(false);
151
152
        $res = $obj->newNavigation();
153
        $this->assertInstanceOf(\WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsNavigation::class, $res);
154
    }
155
156
    /**
157
     * Tests the newTitle() method.
158
     *
159
     * @return void.
160
     */
161
    public function testNewTitle() {
162
163
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\HighchartsLegend(false);
164
165
        $res = $obj->newTitle();
166
        $this->assertInstanceOf(\WBW\Bundle\HighchartsBundle\API\Chart\Legend\HighchartsTitle::class, $res);
167
    }
168
169
    /**
170
     * Tests the toArray() method.
171
     *
172
     * @return void
173
     */
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
    }
363
364
}
365