| Conditions | 1 |
| Paths | 1 |
| Total Lines | 203 |
| Code Lines | 121 |
| 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 |
||
| 222 | public function testToArray() { |
||
| 223 | |||
| 224 | $obj = new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\HighchartsScatter(true); |
||
| 225 | |||
| 226 | $obj->setAllowPointSelect(0); |
||
| 227 | |||
| 228 | $res1 = ["allowPointSelect" => 0]; |
||
| 229 | $this->assertEquals($res1, $obj->toArray()); |
||
| 230 | |||
| 231 | $obj->setAnimation(1); |
||
| 232 | |||
| 233 | $res2 = ["allowPointSelect" => 0, "animation" => 1]; |
||
| 234 | $this->assertEquals($res2, $obj->toArray()); |
||
| 235 | |||
| 236 | $obj->setAnimationLimit(54); |
||
| 237 | |||
| 238 | $res3 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54]; |
||
| 239 | $this->assertEquals($res3, $obj->toArray()); |
||
| 240 | |||
| 241 | $obj->setClassName("6f66e878c62db60568a3487869695820"); |
||
| 242 | |||
| 243 | $res4 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820"]; |
||
| 244 | $this->assertEquals($res4, $obj->toArray()); |
||
| 245 | |||
| 246 | $obj->setColor("70dda5dfb8053dc6d1c492574bce9bfd"); |
||
| 247 | |||
| 248 | $res5 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd"]; |
||
| 249 | $this->assertEquals($res5, $obj->toArray()); |
||
| 250 | |||
| 251 | $obj->setColorIndex(73); |
||
| 252 | |||
| 253 | $res6 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73]; |
||
| 254 | $this->assertEquals($res6, $obj->toArray()); |
||
| 255 | |||
| 256 | $obj->setCropThreshold(19); |
||
| 257 | |||
| 258 | $res7 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19]; |
||
| 259 | $this->assertEquals($res7, $obj->toArray()); |
||
| 260 | |||
| 261 | $obj->setCursor("crosshair"); |
||
| 262 | |||
| 263 | $res8 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair"]; |
||
| 264 | $this->assertEquals($res8, $obj->toArray()); |
||
| 265 | |||
| 266 | $obj->setDashStyle("LongDashDotDot"); |
||
| 267 | |||
| 268 | $res9 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot"]; |
||
| 269 | $this->assertEquals($res9, $obj->toArray()); |
||
| 270 | |||
| 271 | $obj->setDataLabels(new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Scatter\HighchartsDataLabels()); |
||
| 272 | |||
| 273 | $res10 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => []]; |
||
| 274 | $this->assertEquals($res10, $obj->toArray()); |
||
| 275 | |||
| 276 | $obj->setDescription("67daf92c833c41c95db874e18fcb2786"); |
||
| 277 | |||
| 278 | $res11 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786"]; |
||
| 279 | $this->assertEquals($res11, $obj->toArray()); |
||
| 280 | |||
| 281 | $obj->setEnableMouseTracking(1); |
||
| 282 | |||
| 283 | $res12 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1]; |
||
| 284 | $this->assertEquals($res12, $obj->toArray()); |
||
| 285 | |||
| 286 | $obj->setEvents(new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Scatter\HighchartsEvents()); |
||
| 287 | |||
| 288 | $res13 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => []]; |
||
| 289 | $this->assertEquals($res13, $obj->toArray()); |
||
| 290 | |||
| 291 | $obj->setExposeElementToA11y(1); |
||
| 292 | |||
| 293 | $res14 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1]; |
||
| 294 | $this->assertEquals($res14, $obj->toArray()); |
||
| 295 | |||
| 296 | $obj->setFindNearestPointBy("xy"); |
||
| 297 | |||
| 298 | $res15 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy"]; |
||
| 299 | $this->assertEquals($res15, $obj->toArray()); |
||
| 300 | |||
| 301 | $obj->setGetExtremesFromAll(1); |
||
| 302 | |||
| 303 | $res16 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1]; |
||
| 304 | $this->assertEquals($res16, $obj->toArray()); |
||
| 305 | |||
| 306 | $obj->setKeys(["keys" => "14f802e1fba977727845e8872c1743a7"]); |
||
| 307 | |||
| 308 | $res17 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"]]; |
||
| 309 | $this->assertEquals($res17, $obj->toArray()); |
||
| 310 | |||
| 311 | $obj->setLineWidth(34); |
||
| 312 | |||
| 313 | $res18 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34]; |
||
| 314 | $this->assertEquals($res18, $obj->toArray()); |
||
| 315 | |||
| 316 | $obj->setLinkedTo("914fab47afc86331ec62837807a29419"); |
||
| 317 | |||
| 318 | $res19 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419"]; |
||
| 319 | $this->assertEquals($res19, $obj->toArray()); |
||
| 320 | |||
| 321 | $obj->setMarker(new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Scatter\HighchartsMarker()); |
||
| 322 | |||
| 323 | $res20 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => []]; |
||
| 324 | $this->assertEquals($res20, $obj->toArray()); |
||
| 325 | |||
| 326 | $obj->setNegativeColor("52fe4d3a854b01e25193b4f35fc2040e"); |
||
| 327 | |||
| 328 | $res21 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e"]; |
||
| 329 | $this->assertEquals($res21, $obj->toArray()); |
||
| 330 | |||
| 331 | $obj->setPoint(new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Scatter\HighchartsPoint()); |
||
| 332 | |||
| 333 | $res22 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => []]; |
||
| 334 | $this->assertEquals($res22, $obj->toArray()); |
||
| 335 | |||
| 336 | $obj->setPointDescriptionFormatter("b5fd0c15b3ca81f726e2c7b93907ba36"); |
||
| 337 | |||
| 338 | $res23 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36"]; |
||
| 339 | $this->assertEquals($res23, $obj->toArray()); |
||
| 340 | |||
| 341 | $obj->setPointInterval(52); |
||
| 342 | |||
| 343 | $res24 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52]; |
||
| 344 | $this->assertEquals($res24, $obj->toArray()); |
||
| 345 | |||
| 346 | $obj->setPointIntervalUnit("year"); |
||
| 347 | |||
| 348 | $res25 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year"]; |
||
| 349 | $this->assertEquals($res25, $obj->toArray()); |
||
| 350 | |||
| 351 | $obj->setPointStart(15); |
||
| 352 | |||
| 353 | $res26 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15]; |
||
| 354 | $this->assertEquals($res26, $obj->toArray()); |
||
| 355 | |||
| 356 | $obj->setSelected(1); |
||
| 357 | |||
| 358 | $res27 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1]; |
||
| 359 | $this->assertEquals($res27, $obj->toArray()); |
||
| 360 | |||
| 361 | $obj->setShadow(0); |
||
| 362 | |||
| 363 | $res28 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0]; |
||
| 364 | $this->assertEquals($res28, $obj->toArray()); |
||
| 365 | |||
| 366 | $obj->setShowCheckbox(0); |
||
| 367 | |||
| 368 | $res29 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0]; |
||
| 369 | $this->assertEquals($res29, $obj->toArray()); |
||
| 370 | |||
| 371 | $obj->setShowInLegend(1); |
||
| 372 | |||
| 373 | $res30 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1]; |
||
| 374 | $this->assertEquals($res30, $obj->toArray()); |
||
| 375 | |||
| 376 | $obj->setSkipKeyboardNavigation(0); |
||
| 377 | |||
| 378 | $res31 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0]; |
||
| 379 | $this->assertEquals($res31, $obj->toArray()); |
||
| 380 | |||
| 381 | $obj->setSoftThreshold(0); |
||
| 382 | |||
| 383 | $res32 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0]; |
||
| 384 | $this->assertEquals($res32, $obj->toArray()); |
||
| 385 | |||
| 386 | $obj->setStates(new \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Scatter\HighchartsStates()); |
||
| 387 | |||
| 388 | $res33 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => []]; |
||
| 389 | $this->assertEquals($res33, $obj->toArray()); |
||
| 390 | |||
| 391 | $obj->setStickyTracking(0); |
||
| 392 | |||
| 393 | $res34 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => [], "stickyTracking" => 0]; |
||
| 394 | $this->assertEquals($res34, $obj->toArray()); |
||
| 395 | |||
| 396 | $obj->setThreshold(95); |
||
| 397 | |||
| 398 | $res35 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => [], "stickyTracking" => 0, "threshold" => 95]; |
||
| 399 | $this->assertEquals($res35, $obj->toArray()); |
||
| 400 | |||
| 401 | $obj->setTooltip(["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"]); |
||
| 402 | |||
| 403 | $res36 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => [], "stickyTracking" => 0, "threshold" => 95, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"]]; |
||
| 404 | $this->assertEquals($res36, $obj->toArray()); |
||
| 405 | |||
| 406 | $obj->setTurboThreshold(76); |
||
| 407 | |||
| 408 | $res37 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => [], "stickyTracking" => 0, "threshold" => 95, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 76]; |
||
| 409 | $this->assertEquals($res37, $obj->toArray()); |
||
| 410 | |||
| 411 | $obj->setVisible(1); |
||
| 412 | |||
| 413 | $res38 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => [], "stickyTracking" => 0, "threshold" => 95, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 76, "visible" => 1]; |
||
| 414 | $this->assertEquals($res38, $obj->toArray()); |
||
| 415 | |||
| 416 | $obj->setZoneAxis("88421adabea658556aa3ab6c6181afad"); |
||
| 417 | |||
| 418 | $res39 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => [], "stickyTracking" => 0, "threshold" => 95, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 76, "visible" => 1, "zoneAxis" => "88421adabea658556aa3ab6c6181afad"]; |
||
| 419 | $this->assertEquals($res39, $obj->toArray()); |
||
| 420 | |||
| 421 | $obj->setZones(["zones" => "26f94136f5db8afd4e9df1e512f7fdc5"]); |
||
| 422 | |||
| 423 | $res40 = ["allowPointSelect" => 0, "animation" => 1, "animationLimit" => 54, "className" => "6f66e878c62db60568a3487869695820", "color" => "70dda5dfb8053dc6d1c492574bce9bfd", "colorIndex" => 73, "cropThreshold" => 19, "cursor" => "crosshair", "dashStyle" => "LongDashDotDot", "dataLabels" => [], "description" => "67daf92c833c41c95db874e18fcb2786", "enableMouseTracking" => 1, "events" => [], "exposeElementToA11y" => 1, "findNearestPointBy" => "xy", "getExtremesFromAll" => 1, "keys" => ["keys" => "14f802e1fba977727845e8872c1743a7"], "lineWidth" => 34, "linkedTo" => "914fab47afc86331ec62837807a29419", "marker" => [], "negativeColor" => "52fe4d3a854b01e25193b4f35fc2040e", "point" => [], "pointDescriptionFormatter" => "b5fd0c15b3ca81f726e2c7b93907ba36", "pointInterval" => 52, "pointIntervalUnit" => "year", "pointStart" => 15, "selected" => 1, "shadow" => 0, "showCheckbox" => 0, "showInLegend" => 1, "skipKeyboardNavigation" => 0, "softThreshold" => 0, "states" => [], "stickyTracking" => 0, "threshold" => 95, "tooltip" => ["tooltip" => "ddbfc1b6aa0ad4d79c5dac7aa3b44888"], "turboThreshold" => 76, "visible" => 1, "zoneAxis" => "88421adabea658556aa3ab6c6181afad", "zones" => ["zones" => "26f94136f5db8afd4e9df1e512f7fdc5"]]; |
||
| 424 | $this->assertEquals($res40, $obj->toArray()); |
||
| 425 | } |
||
| 428 |