public function setUp()
 {
     parent::setUp();
     $tablesToUpdate = array('log_visit', 'log_conversion');
     $columnsToUpdate = array('location_country' => '"xx"', 'location_region' => 'NULL', 'location_city' => 'NULL', 'location_latitude' => 'NULL', 'location_longitude' => 'NULL');
     foreach ($tablesToUpdate as $table) {
         $sql = "UPDATE `" . Common::prefixTable($table) . "` SET ";
         $sets = array();
         foreach ($columnsToUpdate as $column => $defaultValue) {
             $sets[] = $column . ' = ' . $defaultValue;
         }
         $sql .= implode(', ', $sets);
         Db::query($sql);
     }
     self::$fixture->setLocationProvider('GeoIPCity.dat');
 }
 public function tearDown()
 {
     LocationProvider::$providers = null;
     GeoIp::$geoIPDatabaseDir = 'tests/lib/geoip-files';
     ManyVisitsWithGeoIP::unsetLocationProvider();
 }
 public function tearDown()
 {
     ManyVisitsWithGeoIP::unsetLocationProvider();
 }