Exemplo n.º 1
0
 public function testInitialState()
 {
     $coordinateHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Base\\CoordinateHelper');
     $boundHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Base\\BoundHelper');
     $pointHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Base\\PointHelper');
     $sizeHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Base\\SizeHelper');
     $mapTypeIdHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\MapTypeIdHelper');
     $mapTypeControlHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Controls\\MapTypeControlHelper');
     $overviewMapControlHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Controls\\OverviewMapControlHelper');
     $panControlHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Controls\\PanControlHelper');
     $rotateControlHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Controls\\RotateControlHelper');
     $scaleControlHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Controls\\ScaleControlHelper');
     $streetViewControlHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Controls\\StreetViewControlHelper');
     $zoomControlHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Controls\\ZoomControlHelper');
     $markerClusterHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\MarkerCluster\\MarkerClusterHelperInterface');
     $markerImageHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\MarkerImageHelper');
     $markerShapeHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\MarkerShapeHelper');
     $infoWindowHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\InfoWindowHelper');
     $polylineHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\PolylineHelper');
     $encodedPolylineHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\EncodedPolylineHelper');
     $polygonHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\PolygonHelper');
     $rectangleHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\RectangleHelper');
     $circleHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\CircleHelper');
     $groundOverlayHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Overlays\\GroundOverlayHelper');
     $kmlLayerHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Layers\\KMLLayerHelper');
     $eventManagerHelper = $this->getMock('Ivory\\GoogleMap\\Helper\\Events\\EventManagerHelper');
     $extensionHelpers = array('foo' => $this->getMock('Ivory\\GoogleMap\\Helper\\Extension\\ExtensionHelperInterface'));
     $this->mapHelper = new MapHelper($coordinateHelper, $boundHelper, $pointHelper, $sizeHelper, $mapTypeIdHelper, $mapTypeControlHelper, $overviewMapControlHelper, $panControlHelper, $rotateControlHelper, $scaleControlHelper, $streetViewControlHelper, $zoomControlHelper, $markerClusterHelper, $markerImageHelper, $markerShapeHelper, $infoWindowHelper, $polylineHelper, $encodedPolylineHelper, $polygonHelper, $rectangleHelper, $circleHelper, $groundOverlayHelper, $kmlLayerHelper, $eventManagerHelper, $extensionHelpers);
     $this->assertSame($coordinateHelper, $this->mapHelper->getCoordinateHelper());
     $this->assertSame($boundHelper, $this->mapHelper->getBoundHelper());
     $this->assertSame($pointHelper, $this->mapHelper->getPointHelper());
     $this->assertSame($sizeHelper, $this->mapHelper->getSizeHelper());
     $this->assertSame($mapTypeIdHelper, $this->mapHelper->getMapTypeIdHelper());
     $this->assertSame($mapTypeControlHelper, $this->mapHelper->getMapTypeControlHelper());
     $this->assertSame($overviewMapControlHelper, $this->mapHelper->getOverviewMapControlHelper());
     $this->assertSame($panControlHelper, $this->mapHelper->getPanControlHelper());
     $this->assertSame($rotateControlHelper, $this->mapHelper->getRotateControlHelper());
     $this->assertSame($scaleControlHelper, $this->mapHelper->getScaleControlHelper());
     $this->assertSame($streetViewControlHelper, $this->mapHelper->getStreetViewControlHelper());
     $this->assertSame($zoomControlHelper, $this->mapHelper->getZoomControlHelper());
     $this->assertSame($markerClusterHelper, $this->mapHelper->getMarkerClusterHelper());
     $this->assertSame($markerImageHelper, $this->mapHelper->getMarkerImageHelper());
     $this->assertSame($markerShapeHelper, $this->mapHelper->getMarkerShapeHelper());
     $this->assertSame($infoWindowHelper, $this->mapHelper->getInfoWindowHelper());
     $this->assertSame($polylineHelper, $this->mapHelper->getPolylineHelper());
     $this->assertSame($encodedPolylineHelper, $this->mapHelper->getEncodedPolylineHelper());
     $this->assertSame($polygonHelper, $this->mapHelper->getPolygonHelper());
     $this->assertSame($rectangleHelper, $this->mapHelper->getRectangleHelper());
     $this->assertSame($circleHelper, $this->mapHelper->getCircleHelper());
     $this->assertSame($groundOverlayHelper, $this->mapHelper->getGroundOverlayHelper());
     $this->assertSame($kmlLayerHelper, $this->mapHelper->getKmlLayerHelper());
     $this->assertSame($eventManagerHelper, $this->mapHelper->getEventManagerHelper());
     $this->assertSame($extensionHelpers, $this->mapHelper->getExtensionHelpers());
 }