/** * Checks the render encoded polylines method */ public function testRenderEncodedPolylines() { $mapTest = new Model\Map(); $encodedPolylineTest = new Overlays\EncodedPolyline('value'); $mapTest->addEncodedPolyline($encodedPolylineTest); $this->assertEquals(self::$mapHelper->renderEncodedPolylines($mapTest), 'var ' . $encodedPolylineTest->getJavascriptVariable() . ' = new google.maps.Polyline({"map":' . $mapTest->getJavascriptVariable() . ',"path":google.maps.geometry.encoding.decodePath("value")});' . PHP_EOL); }