public static function setMockLocationProvider()
 {
     Piwik_UserCountry_LocationProvider::setCurrentProvider('mock_provider');
     Piwik_UserCountry_LocationProvider::getCurrentProvider()->setLocations(array(self::makeLocation('Toronto', 'ON', 'CA'), self::makeLocation('Nice', 'B8', 'FR'), self::makeLocation('Melbourne', '07', 'AU'), self::makeLocation('Yokohama', '19', 'JP')));
 }
 public static function setMockLocationProvider()
 {
     Piwik_UserCountry_LocationProvider::$providers = null;
     Piwik_UserCountry_LocationProvider::setCurrentProvider('mock_provider');
     Piwik_UserCountry_LocationProvider::getCurrentProvider()->setLocations(array(self::makeLocation('Stratford-upon-Avon', 'P3', 'gb', 123.456, 21.321), self::makeLocation('Nuneaton and Bedworth', 'P3', 'gb'), self::makeLocation('Stratford-upon-Avon', 'P3', 'gb', 124.456, 22.231), self::makeLocation('London', 'H9', 'gb'), self::makeLocation('Stratford-upon-Avon', 'G5', 'gb'), self::makeLocation('Stratford-upon-Avon', '66', 'ru'), self::makeLocation('Hluboká nad Vltavou', '66', 'ru'), self::makeLocation('Stratford-upon-Avon', '66', 'mk'), self::makeLocation(null, null, null)));
 }