/** * Checks the render polylines method */ public function testRenderPolylines() { $mapTest = new Model\Map(); $polylineTest = new Overlays\Polyline(); $polylineTest->setCoordinates(array(new Base\Coordinate(1.1, 2.1, true), new Base\Coordinate(3.1, 4.1, true))); $mapTest->addPolyline($polylineTest); $this->assertEquals(self::$mapHelper->renderPolylines($mapTest), 'var ' . $polylineTest->getJavascriptVariable() . ' = new google.maps.Polyline({"map":' . $mapTest->getJavascriptVariable() . ',"path":[new google.maps.LatLng(1.1, 2.1, true),new google.maps.LatLng(3.1, 4.1, true)]});' . PHP_EOL); }