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

HighchartsPolygonTest::testToArray()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 238
Code Lines 142

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 142
nc 1
nop 0
dl 0
loc 238
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\Series;
13
14
use PHPUnit_Framework_TestCase;
15
16
/**
17
 * Highcharts polygon test.
18
 *
19
 * @author webeweb <https://github.com/webeweb/>
20
 * @package WBW\Bundle\HighchartsBundle\Tests\API\Chart\Series
21
 * @version 5.0.14
22
 */
23
final class HighchartsPolygonTest 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\Series\HighchartsPolygon(true);
33
34
        $this->assertEquals(null, $obj1->getAllowPointSelect());
35
        $this->assertEquals(null, $obj1->getAnimation());
36
        $this->assertEquals(null, $obj1->getAnimationLimit());
37
        $this->assertEquals(null, $obj1->getClassName());
38
        $this->assertEquals(null, $obj1->getColor());
39
        $this->assertEquals(null, $obj1->getColorIndex());
40
        $this->assertEquals(null, $obj1->getCropThreshold());
41
        $this->assertEquals(null, $obj1->getCursor());
42
        $this->assertEquals(null, $obj1->getDashStyle());
43
        $this->assertEquals(null, $obj1->getData());
44
        $this->assertEquals(null, $obj1->getDataLabels());
45
        $this->assertEquals(null, $obj1->getDescription());
46
        $this->assertEquals(null, $obj1->getEnableMouseTracking());
47
        $this->assertEquals(null, $obj1->getEvents());
48
        $this->assertEquals(null, $obj1->getExposeElementToA11y());
49
        $this->assertEquals(null, $obj1->getFindNearestPointBy());
50
        $this->assertEquals(null, $obj1->getGetExtremesFromAll());
51
        $this->assertEquals(null, $obj1->getId());
52
        $this->assertEquals(null, $obj1->getIndex());
53
        $this->assertEquals(null, $obj1->getKeys());
54
        $this->assertEquals(null, $obj1->getLegendIndex());
55
        $this->assertEquals(null, $obj1->getLineWidth());
56
        $this->assertEquals(null, $obj1->getLinkedTo());
57
        $this->assertEquals(null, $obj1->getMarker());
58
        $this->assertEquals(null, $obj1->getName());
59
        $this->assertEquals(null, $obj1->getNegativeColor());
60
        $this->assertEquals(null, $obj1->getPoint());
61
        $this->assertEquals(null, $obj1->getPointDescriptionFormatter());
62
        $this->assertEquals(null, $obj1->getPointInterval());
63
        $this->assertEquals(null, $obj1->getPointIntervalUnit());
64
        $this->assertEquals(null, $obj1->getPointStart());
65
        $this->assertEquals(null, $obj1->getSelected());
66
        $this->assertEquals(null, $obj1->getShadow());
67
        $this->assertEquals(null, $obj1->getShowCheckbox());
68
        $this->assertEquals(null, $obj1->getShowInLegend());
69
        $this->assertEquals(null, $obj1->getSkipKeyboardNavigation());
70
        $this->assertEquals(null, $obj1->getStates());
71
        $this->assertEquals(null, $obj1->getStickyTracking());
72
        $this->assertEquals(null, $obj1->getTooltip());
73
        $this->assertEquals(null, $obj1->getTurboThreshold());
74
        $this->assertEquals(null, $obj1->getType());
75
        $this->assertEquals(null, $obj1->getVisible());
76
        $this->assertEquals(null, $obj1->getXAxis());
77
        $this->assertEquals(null, $obj1->getYAxis());
78
        $this->assertEquals(null, $obj1->getZIndex());
79
        $this->assertEquals(null, $obj1->getZoneAxis());
80
        $this->assertEquals(null, $obj1->getZones());
81
82
        $obj0 = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(false);
83
84
        $this->assertEquals(false, $obj0->getAllowPointSelect());
85
        $this->assertEquals(true, $obj0->getAnimation());
86
        $this->assertEquals(null, $obj0->getAnimationLimit());
87
        $this->assertEquals(null, $obj0->getClassName());
88
        $this->assertEquals(null, $obj0->getColor());
89
        $this->assertEquals(null, $obj0->getColorIndex());
90
        $this->assertEquals(300, $obj0->getCropThreshold());
91
        $this->assertEquals(null, $obj0->getCursor());
92
        $this->assertEquals("Solid", $obj0->getDashStyle());
93
        $this->assertEquals(null, $obj0->getData());
94
        $this->assertEquals(null, $obj0->getDataLabels());
95
        $this->assertEquals(null, $obj0->getDescription());
96
        $this->assertEquals(true, $obj0->getEnableMouseTracking());
97
        $this->assertEquals(null, $obj0->getEvents());
98
        $this->assertEquals(null, $obj0->getExposeElementToA11y());
99
        $this->assertEquals(null, $obj0->getFindNearestPointBy());
100
        $this->assertEquals(false, $obj0->getGetExtremesFromAll());
101
        $this->assertEquals(null, $obj0->getId());
102
        $this->assertEquals(null, $obj0->getIndex());
103
        $this->assertEquals(null, $obj0->getKeys());
104
        $this->assertEquals(null, $obj0->getLegendIndex());
105
        $this->assertEquals(0, $obj0->getLineWidth());
106
        $this->assertEquals(null, $obj0->getLinkedTo());
107
        $this->assertEquals(null, $obj0->getMarker());
108
        $this->assertEquals(null, $obj0->getName());
109
        $this->assertEquals(null, $obj0->getNegativeColor());
110
        $this->assertEquals(null, $obj0->getPoint());
111
        $this->assertEquals(null, $obj0->getPointDescriptionFormatter());
112
        $this->assertEquals(1, $obj0->getPointInterval());
113
        $this->assertEquals(null, $obj0->getPointIntervalUnit());
114
        $this->assertEquals(0, $obj0->getPointStart());
115
        $this->assertEquals(false, $obj0->getSelected());
116
        $this->assertEquals(false, $obj0->getShadow());
117
        $this->assertEquals(false, $obj0->getShowCheckbox());
118
        $this->assertEquals(true, $obj0->getShowInLegend());
119
        $this->assertEquals(null, $obj0->getSkipKeyboardNavigation());
120
        $this->assertEquals(null, $obj0->getStates());
121
        $this->assertEquals(false, $obj0->getStickyTracking());
122
        $this->assertEquals(null, $obj0->getTooltip());
123
        $this->assertEquals(1000, $obj0->getTurboThreshold());
124
        $this->assertEquals(null, $obj0->getType());
125
        $this->assertEquals(true, $obj0->getVisible());
126
        $this->assertEquals("0", $obj0->getXAxis());
127
        $this->assertEquals("0", $obj0->getYAxis());
128
        $this->assertEquals(null, $obj0->getZIndex());
129
        $this->assertEquals("y", $obj0->getZoneAxis());
130
        $this->assertEquals(null, $obj0->getZones());
131
    }
132
133
    /**
134
     * Tests the clear() method.
135
     *
136
     * @return void
137
     */
138
    public function testClear() {
139
140
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(false);
141
142
        $obj->newDataLabels();
143
        $obj->newEvents();
144
        $obj->newMarker();
145
        $obj->newPoint();
146
        $obj->newStates();
147
148
        $obj->clear();
149
150
        $res = ["dataLabels" => [], "events" => [], "marker" => [], "point" => [], "states" => []];
151
        $this->assertEquals($res, $obj->toArray());
152
    }
153
154
    /**
155
     * Tests the jsonSerialize() method.
156
     *
157
     * @return void
158
     */
159
    public function testJsonSerialize() {
160
161
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(true);
162
163
        $this->assertEquals([], $obj->jsonSerialize());
164
    }
165
166
    /**
167
     * Tests the newDataLabels() method.
168
     *
169
     * @return void.
170
     */
171
    public function testNewDataLabels() {
172
173
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(false);
174
175
        $res = $obj->newDataLabels();
176
        $this->assertInstanceOf(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels::class, $res);
177
    }
178
179
    /**
180
     * Tests the newEvents() method.
181
     *
182
     * @return void.
183
     */
184
    public function testNewEvents() {
185
186
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(false);
187
188
        $res = $obj->newEvents();
189
        $this->assertInstanceOf(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents::class, $res);
190
    }
191
192
    /**
193
     * Tests the newMarker() method.
194
     *
195
     * @return void.
196
     */
197
    public function testNewMarker() {
198
199
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(false);
200
201
        $res = $obj->newMarker();
202
        $this->assertInstanceOf(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker::class, $res);
203
    }
204
205
    /**
206
     * Tests the newPoint() method.
207
     *
208
     * @return void.
209
     */
210
    public function testNewPoint() {
211
212
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(false);
213
214
        $res = $obj->newPoint();
215
        $this->assertInstanceOf(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint::class, $res);
216
    }
217
218
    /**
219
     * Tests the newStates() method.
220
     *
221
     * @return void.
222
     */
223
    public function testNewStates() {
224
225
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(false);
226
227
        $res = $obj->newStates();
228
        $this->assertInstanceOf(\WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates::class, $res);
229
    }
230
231
    /**
232
     * Tests the toArray() method.
233
     *
234
     * @return void
235
     */
236
    public function testToArray() {
237
238
        $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\Series\HighchartsPolygon(true);
239
240
        $obj->setAllowPointSelect(0);
241
242
        $res1 = ["allowPointSelect" => 0];
243
        $this->assertEquals($res1, $obj->toArray());
244
245
        $obj->setAnimation(0);
246
247
        $res2 = ["allowPointSelect" => 0, "animation" => 0];
248
        $this->assertEquals($res2, $obj->toArray());
249
250
        $obj->setAnimationLimit(29);
251
252
        $res3 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29];
253
        $this->assertEquals($res3, $obj->toArray());
254
255
        $obj->setClassName("6f66e878c62db60568a3487869695820");
256
257
        $res4 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820"];
258
        $this->assertEquals($res4, $obj->toArray());
259
260
        $obj->setColor("70dda5dfb8053dc6d1c492574bce9bfd");
261
262
        $res5 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd"];
263
        $this->assertEquals($res5, $obj->toArray());
264
265
        $obj->setColorIndex(69);
266
267
        $res6 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69];
268
        $this->assertEquals($res6, $obj->toArray());
269
270
        $obj->setCropThreshold(8);
271
272
        $res7 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8];
273
        $this->assertEquals($res7, $obj->toArray());
274
275
        $obj->setCursor("crosshair");
276
277
        $res8 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair"];
278
        $this->assertEquals($res8, $obj->toArray());
279
280
        $obj->setDashStyle("LongDashDotDot");
281
282
        $res9 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot"];
283
        $this->assertEquals($res9, $obj->toArray());
284
285
        $obj->setData(["data" => "8d777f385d3dfec8815d20f7496026dc"]);
286
287
        $res10 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"]];
288
        $this->assertEquals($res10, $obj->toArray());
289
290
        $obj->setDataLabels(new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsDataLabels());
291
292
        $res11 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => []];
293
        $this->assertEquals($res11, $obj->toArray());
294
295
        $obj->setDescription("67daf92c833c41c95db874e18fcb2786");
296
297
        $res12 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786"];
298
        $this->assertEquals($res12, $obj->toArray());
299
300
        $obj->setEnableMouseTracking(0);
301
302
        $res13 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0];
303
        $this->assertEquals($res13, $obj->toArray());
304
305
        $obj->setEvents(new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsEvents());
306
307
        $res14 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => []];
308
        $this->assertEquals($res14, $obj->toArray());
309
310
        $obj->setExposeElementToA11y(0);
311
312
        $res15 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0];
313
        $this->assertEquals($res15, $obj->toArray());
314
315
        $obj->setFindNearestPointBy("xy");
316
317
        $res16 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy"];
318
        $this->assertEquals($res16, $obj->toArray());
319
320
        $obj->setGetExtremesFromAll(0);
321
322
        $res17 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0];
323
        $this->assertEquals($res17, $obj->toArray());
324
325
        $obj->setId("b80bb7740288fda1f201890375a60c8f");
326
327
        $res18 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f"];
328
        $this->assertEquals($res18, $obj->toArray());
329
330
        $obj->setIndex(66);
331
332
        $res19 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66];
333
        $this->assertEquals($res19, $obj->toArray());
334
335
        $obj->setKeys(["keys" => "14f802e1fba977727845e8872c1743a7"]);
336
337
        $res20 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"]];
338
        $this->assertEquals($res20, $obj->toArray());
339
340
        $obj->setLegendIndex(92);
341
342
        $res21 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92];
343
        $this->assertEquals($res21, $obj->toArray());
344
345
        $obj->setLineWidth(35);
346
347
        $res22 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35];
348
        $this->assertEquals($res22, $obj->toArray());
349
350
        $obj->setLinkedTo("914fab47afc86331ec62837807a29419");
351
352
        $res23 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419"];
353
        $this->assertEquals($res23, $obj->toArray());
354
355
        $obj->setMarker(new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsMarker());
356
357
        $res24 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => []];
358
        $this->assertEquals($res24, $obj->toArray());
359
360
        $obj->setName("b068931cc450442b63f5b3d276ea4297");
361
362
        $res25 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297"];
363
        $this->assertEquals($res25, $obj->toArray());
364
365
        $obj->setNegativeColor("52fe4d3a854b01e25193b4f35fc2040e");
366
367
        $res26 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e"];
368
        $this->assertEquals($res26, $obj->toArray());
369
370
        $obj->setPoint(new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsPoint());
371
372
        $res27 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => []];
373
        $this->assertEquals($res27, $obj->toArray());
374
375
        $obj->setPointDescriptionFormatter("b5fd0c15b3ca81f726e2c7b93907ba36");
376
377
        $res28 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36"];
378
        $this->assertEquals($res28, $obj->toArray());
379
380
        $obj->setPointInterval(44);
381
382
        $res29 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44];
383
        $this->assertEquals($res29, $obj->toArray());
384
385
        $obj->setPointIntervalUnit("year");
386
387
        $res30 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year"];
388
        $this->assertEquals($res30, $obj->toArray());
389
390
        $obj->setPointStart(70);
391
392
        $res31 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70];
393
        $this->assertEquals($res31, $obj->toArray());
394
395
        $obj->setSelected(1);
396
397
        $res32 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1];
398
        $this->assertEquals($res32, $obj->toArray());
399
400
        $obj->setShadow(0);
401
402
        $res33 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0];
403
        $this->assertEquals($res33, $obj->toArray());
404
405
        $obj->setShowCheckbox(1);
406
407
        $res34 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1];
408
        $this->assertEquals($res34, $obj->toArray());
409
410
        $obj->setShowInLegend(1);
411
412
        $res35 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1];
413
        $this->assertEquals($res35, $obj->toArray());
414
415
        $obj->setSkipKeyboardNavigation(0);
416
417
        $res36 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0];
418
        $this->assertEquals($res36, $obj->toArray());
419
420
        $obj->setStates(new \WBW\Bundle\HighchartsBundle\API\Chart\Series\Polygon\HighchartsStates());
421
422
        $res37 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => []];
423
        $this->assertEquals($res37, $obj->toArray());
424
425
        $obj->setStickyTracking(0);
426
427
        $res38 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0];
428
        $this->assertEquals($res38, $obj->toArray());
429
430
        $obj->setTooltip(["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"]);
431
432
        $res39 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"]];
433
        $this->assertEquals($res39, $obj->toArray());
434
435
        $obj->setTurboThreshold(16);
436
437
        $res40 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16];
438
        $this->assertEquals($res40, $obj->toArray());
439
440
        $obj->setType("waterfall");
441
442
        $res41 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16, "type" => "waterfall"];
443
        $this->assertEquals($res41, $obj->toArray());
444
445
        $obj->setVisible(0);
446
447
        $res42 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16, "type" => "waterfall", "visible" => 0];
448
        $this->assertEquals($res42, $obj->toArray());
449
450
        $obj->setXAxis(20);
451
452
        $res43 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16, "type" => "waterfall", "visible" => 0, "xAxis" => 20];
453
        $this->assertEquals($res43, $obj->toArray());
454
455
        $obj->setYAxis(66);
456
457
        $res44 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16, "type" => "waterfall", "visible" => 0, "xAxis" => 20, "yAxis" => 66];
458
        $this->assertEquals($res44, $obj->toArray());
459
460
        $obj->setZIndex(17);
461
462
        $res45 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16, "type" => "waterfall", "visible" => 0, "xAxis" => 20, "yAxis" => 66, "zIndex" => 17];
463
        $this->assertEquals($res45, $obj->toArray());
464
465
        $obj->setZoneAxis("88421adabea658556aa3ab6c6181afad");
466
467
        $res46 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16, "type" => "waterfall", "visible" => 0, "xAxis" => 20, "yAxis" => 66, "zIndex" => 17, "zoneAxis" => "88421adabea658556aa3ab6c6181afad"];
468
        $this->assertEquals($res46, $obj->toArray());
469
470
        $obj->setZones(["zones" => "26f94136f5db8afd4e9df1e512f7fdc5"]);
471
472
        $res47 = ["allowPointSelect" => 0, "animation" => 0, "animationLimit" => 29, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 69, "cropThreshold" => 8, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "data" => ["data" => "8d777f385d3dfec8815d20f7496026dc"], "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 0, "events" => [], "exposeElementToA11y" => 0, "findNearestPointBy" => "xy", "getExtremesFromAll" => 0, "id" => "b80bb7740288fda1f201890375a60c8f", "index" => 66, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "legendIndex" => 92, "lineWidth" => 35, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "name" => "b068931cc450442b63f5b3d276ea4297", "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 44, "pointIntervalUnit" => "year", "pointStart" => 70, "selected" => 1, "shadow" => 0, "showCheckbox" => 1, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "states" => [], "stickyTracking" => 0, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 16, "type" => "waterfall", "visible" => 0, "xAxis" => 20, "yAxis" => 66, "zIndex" => 17, "zoneAxis" => "88421adabea658556aa3ab6c6181afad", "zones" => ["zones" => "26f94136f5db8afd4e9df1e512f7fdc5"]];
473
        $this->assertEquals($res47, $obj->toArray());
474
    }
475
476
}
477