/**
  * Checks the render method
  */
 public function testRender()
 {
     $mapTest = new Map();
     $markerTest = new Overlays\Marker();
     $markerTest->setPosition(new Base\Coordinate(1.1, 2.1, true));
     $markerTest->setAnimation(Overlays\Animation::BOUNCE);
     $iconTest = new Overlays\MarkerImage();
     $iconTest->setUrl('url');
     $markerTest->setIcon($iconTest);
     $shadowTest = new Overlays\MarkerImage();
     $shadowTest->setUrl('url');
     $markerTest->setShadow($shadowTest);
     $shapeTest = new Overlays\MarkerShape();
     $shapeTest->setType('poly');
     $shapeTest->setCoordinates(array(1, 2, 3, 4));
     $markerTest->setShape($shapeTest);
     $infoWindowTest = new Overlays\InfoWindow();
     $infoWindowTest->setContent('content');
     $markerTest->setInfoWindow($infoWindowTest);
     $this->assertEquals(self::$markerHelper->render($markerTest, $mapTest), 'var ' . $markerTest->getIcon()->getJavascriptVariable() . ' = new google.maps.MarkerImage("url");' . PHP_EOL . 'var ' . $markerTest->getShadow()->getJavascriptVariable() . ' = new google.maps.MarkerImage("url");' . PHP_EOL . 'var ' . $markerTest->getShape()->getJavascriptVariable() . ' = new google.maps.MarkerShape({"type":"poly","coords":[1,2,3,4]});' . PHP_EOL . 'var ' . $markerTest->getJavascriptVariable() . ' = new google.maps.Marker({"map":' . $mapTest->getJavascriptVariable() . ',"position":new google.maps.LatLng(1.1, 2.1, true), "animation":google.maps.Animation.BOUNCE, "icon":' . $markerTest->getIcon()->getJavascriptVariable() . ', "shadow":' . $markerTest->getShadow()->getJavascriptVariable() . ', "shape":' . $markerTest->getShape()->getJavascriptVariable() . '});' . PHP_EOL . 'var ' . $markerTest->getInfoWindow()->getJavascriptVariable() . ' = new google.maps.InfoWindow({"content":"content"});' . PHP_EOL);
     $markerTest->setOptions(array('option1' => 'value1', 'option2' => 'value2'));
     $this->assertEquals(self::$markerHelper->render($markerTest, $mapTest), 'var ' . $markerTest->getIcon()->getJavascriptVariable() . ' = new google.maps.MarkerImage("url");' . PHP_EOL . 'var ' . $markerTest->getShadow()->getJavascriptVariable() . ' = new google.maps.MarkerImage("url");' . PHP_EOL . 'var ' . $markerTest->getShape()->getJavascriptVariable() . ' = new google.maps.MarkerShape({"type":"poly","coords":[1,2,3,4]});' . PHP_EOL . 'var ' . $markerTest->getJavascriptVariable() . ' = new google.maps.Marker({"map":' . $mapTest->getJavascriptVariable() . ',"position":new google.maps.LatLng(1.1, 2.1, true), "animation":google.maps.Animation.BOUNCE, "icon":' . $markerTest->getIcon()->getJavascriptVariable() . ', "shadow":' . $markerTest->getShadow()->getJavascriptVariable() . ', "shape":' . $markerTest->getShape()->getJavascriptVariable() . ',"option1":"value1","option2":"value2"});' . PHP_EOL . 'var ' . $markerTest->getInfoWindow()->getJavascriptVariable() . ' = new google.maps.InfoWindow({"content":"content"});' . PHP_EOL);
 }
 /**
  * Checks the render info windows method
  */
 public function testRenderInfoWindows()
 {
     $mapTest = new Model\Map();
     $infoWindow = new Overlays\InfoWindow();
     $infoWindow->setPosition(new Base\Coordinate(1.1, 2.1, true));
     $infoWindow->setContent('content');
     $infoWindow->setOpen(true);
     $mapTest->addInfoWindow($infoWindow);
     $this->assertEquals(self::$mapHelper->renderInfoWindows($mapTest), 'var ' . $infoWindow->getJavascriptVariable() . ' = new google.maps.InfoWindow({"position":new google.maps.LatLng(1.1, 2.1, true),"content":"content"});' . PHP_EOL . $infoWindow->getJavascriptVariable() . '.open(' . $mapTest->getJavascriptVariable() . ');' . PHP_EOL);
 }
 /**
  * Create an info window
  */
 public function __construct()
 {
     parent::__construct();
 }