protected function setUpCustomNumericFunctions(Configuration $config)
 {
     parent::setUpCustomNumericFunctions($config);
     return;
     $config->addCustomNumericFunction('LATITUDE_WITHIN', 'Giosh94mhz\\GeonamesBundle\\Doctrine\\FunctionNode\\LatitudeWithin');
     $config->addCustomNumericFunction('LONGITUDE_WITHIN', 'Giosh94mhz\\GeonamesBundle\\Doctrine\\FunctionNode\\LongitudeWithin');
 }
 protected function setUp()
 {
     parent::setUp();
     $this->downloaderMock = $this->getMock('Giosh94mhz\\GeonamesBundle\\Model\\Import\\DownloadAdapter');
     $this->downloaderMock->expects($this->any())->method('add')->will($this->returnCallback(function ($url) {
         return str_replace(AbstractImportStepBuilder::GEONAME_DUMP_URL, __DIR__ . '/../../Fixtures/', $url);
     }));
     $this->downloaderMock->expects($this->any())->method('getDirectory')->will($this->returnValue(sys_get_temp_dir()));
     $this->director = new ImportDirector($this->_em, $this->downloaderMock);
     $this->director->setDispatcher(new EventDispatcher());
 }
Esempio n. 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->geocoder = new Geocoder(new PersistentGeonamesProvider($this->_em), new ResultFactory($this->_em));
 }
 public function setUp()
 {
     parent::setUp();
     $this->factory = new ResultFactory($this->_em);
 }
 public function setUp()
 {
     parent::setUp();
     $this->provider = new PersistentGeonamesProvider($this->_em);
 }