Exemplo n.º 1
0
 public function testMessageElementMoreParameters()
 {
     $marker = new Marker();
     $this->assertEquals($this->object->getMapData(array('52.429222277955134,13.359375~Capital of Germany~Crazy people here!~ ~ ~Berlin;', 'service=leaflet')), array('markers' => array(array('pos' => array(array('lat' => 52.429222277955, 'lon' => 13.359375)), 'title' => "<p>Capital of Germany\n</p>", 'text' => "<p>Crazy people here!\n</p>")), 'zoom' => 14, 'center' => array('lat' => 52.429222277955, 'lon' => 13.359375)));
     $this->assertEquals($this->object->getErrorMessages(), array(\wfMessage('multimaps-element-more-parameters', $marker->getElementName())->escaped(), \wfMessage('multimaps-element-parameters-not-processed', '"' . implode('", "', array(' ', 'Berlin')) . '"')->escaped()));
 }