Piwik\Plugins\UserCountry\LocationProvider\GeoIp::getTestIpAndResult PHP 메소드

getTestIpAndResult() 개인적인 정적인 메소드

Returns test IP used by isWorking and expected result.
private static getTestIpAndResult ( ) : array
리턴 array eg. array('1.2.3.4', array(self::COUNTRY_CODE_KEY => ...))
    private static function getTestIpAndResult()
    {
        static $result = null;
        if (is_null($result)) {
            // TODO: what happens when IP changes? should we get this information from piwik.org?
            $expected = array(self::COUNTRY_CODE_KEY => 'FR', self::REGION_CODE_KEY => 'A6', self::CITY_NAME_KEY => 'Besançon');
            $result = array(self::TEST_IP, $expected);
        }
        return $result;
    }