/** * Checks the render ground overlays method */ public function testRenderGroundOverlays() { $mapTest = new Model\Map(); $groundOverlayTest = new Overlays\GroundOverlay(); $groundOverlayTest->setUrl('url'); $groundOverlayTest->setBound(new Base\Coordinate(-1.1, -2.1, true), new Base\Coordinate(1.1, 2.1, true)); $mapTest->addGroundOverlay($groundOverlayTest); $this->assertEquals(self::$mapHelper->renderGroundOverlays($mapTest), 'var ' . $groundOverlayTest->getBound()->getJavascriptVariable() . ' = new google.maps.LatLngBounds(new google.maps.LatLng(-1.1, -2.1, true), new google.maps.LatLng(1.1, 2.1, true));' . PHP_EOL . 'var ' . $groundOverlayTest->getJavascriptVariable() . ' = new google.maps.GroundOverlay("url", ' . $groundOverlayTest->getBound()->getJavascriptVariable() . ', {"map":' . $mapTest->getJavascriptVariable() . '});' . PHP_EOL); }