public function testRenderJsContainerKMLLayers() { $map = new Map(); $map->setJavascriptVariable('map'); $map->addKMLLayer($kmlLayer = new KMLLayer('url')); $kmlLayer->setJavascriptVariable('kml_layer'); $expected = <<<EOF map_container.kml_layers.kml_layer = kml_layer = new google.maps.KmlLayer("url", {"map":map}); EOF; $this->assertSame($expected, $this->mapHelper->renderJsContainerKMLLayers($map)); }