public function testRenderWithRectangleType() { $markerShape = new MarkerShape('rect', array(-1, -1, 1, 1)); $markerShape->setJavascriptVariable('markerShape'); $this->assertSame('markerShape = new google.maps.MarkerShape({"type":"rect","coords":[-1,-1,1,1]});' . PHP_EOL, $this->markerShapeHelper->render($markerShape)); }