Пример #1
0
 /**
  * @depends testMultipleGeocode
  */
 public function testMultipleGeocodeWithLimit(Toponym $expected)
 {
     $this->loadFixtures();
     $this->geocoder->setResultFactory(new MultipleResultFactory($this->_em));
     $this->geocoder->limit(1);
     $this->assertEquals($this->geocoder->getMaxResults(), 1);
     $result = $this->getFirstResultFromStorage($this->geocoder->geocode('Rom'), 1);
     $this->assertEquals($expected->getId(), $result->getToponym()->getId());
 }
Пример #2
0
 public function getTimezone()
 {
     return $this->toponym->getTimezone();
 }