/**
  * Checks the render method
  */
 public function testRender()
 {
     $zoomControlTest = new ZoomControl();
     $zoomControlTest->setControlPosition(ControlPosition::BOTTOM_CENTER);
     $zoomControlTest->setZoomControlStyle(ZoomControlStyle::SMALL);
     $this->assertEquals(self::$zoomControlHelper->render($zoomControlTest), '{"position":google.maps.ControlPosition.BOTTOM_CENTER,"style":google.maps.ZoomControlStyle.SMALL}');
 }
 /**
  * Checks the map zoom control getter & setter
  */
 public function testZoomControl()
 {
     $zoomControlTest = new Controls\ZoomControl();
     $zoomControlTest->setControlPosition(Controls\ControlPosition::BOTTOM_CENTER);
     $zoomControlTest->setZoomControlStyle(Controls\ZoomControlStyle::SMALL);
     $this->assertFalse(self::$map->hasZoomControl());
     $this->assertFalse(self::$map->hasMapOption('zoomControl'));
     self::$map->setZoomControl($zoomControlTest);
     $this->assertTrue(self::$map->hasZoomControl());
     $this->assertEquals(self::$map->getZoomControl()->getControlPosition(), 'bottom_center');
     $this->assertEquals(self::$map->getZoomControl()->getZoomControlStyle(), 'small');
     $this->assertTrue(self::$map->hasMapOption('zoomControl'));
     self::$map->setZoomControl(Controls\ControlPosition::BOTTOM_LEFT, Controls\ZoomControlStyle::LARGE);
     $this->assertEquals(self::$map->getZoomControl()->getControlPosition(), 'bottom_left');
     $this->assertEquals(self::$map->getZoomControl()->getZoomControlStyle(), 'large');
     self::$map->setZoomControl(null);
     $this->assertNull(self::$map->getZoomControl());
     $this->assertFalse(self::$map->hasMapOption('zoomControl'));
     $this->setExpectedException('InvalidArgumentException');
     self::$map->setZoomControl('foo');
 }