Esempio n. 1
0
 private function setMockLocationProvider()
 {
     LocationProvider::$providers = null;
     LocationProvider::setCurrentProvider('mock_provider');
     MockLocationProvider::$locations = array(self::makeLocation('Stratford-upon-Avon', 'P3', 'gb', 123.456, 21.321), self::makeLocation('Nuneaton and Bedworth', 'P3', 'gb', $isp = 'comcast.net'), self::makeLocation('Stratford-upon-Avon', 'P3', 'gb', 124.456, 22.231, $isp = 'comcast.net'), self::makeLocation('London', 'H9', 'gb'), self::makeLocation('Stratford-upon-Avon', 'G5', 'gb', $lat = null, $long = null, $isp = 'awesomeisp.com'), 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));
 }
 private function setMockLocationProvider()
 {
     LocationProvider::setCurrentProvider('mock_provider');
     MockLocationProvider::$locations = array(self::makeLocation('Toronto', 'ON', 'CA', $lat = null, $long = null, $isp = 'comcast.net'), self::makeLocation('Nice', 'B8', 'FR', $lat = null, $long = null, $isp = 'comcast.net'), self::makeLocation('Melbourne', '07', 'AU', $lat = null, $long = null, $isp = 'awesomeisp.com'), self::makeLocation('Yokohama', '19', 'JP'));
 }