libphonenumber\PhoneNumberUtil::resetInstance PHP Метод

resetInstance() публичный статический Метод

Used for testing purposes only to reset the PhoneNumberUtil singleton to null.
public static resetInstance ( )
    public static function resetInstance()
    {
        static::$instance = null;
    }

Usage Example

 public function setUp()
 {
     PhoneNumberUtil::resetInstance();
     PhoneNumberOfflineGeocoder::resetInstance();
     $this->phoneUtil = PhoneNumberUtil::getInstance();
     $this->geocoder = PhoneNumberOfflineGeocoder::getInstance();
 }
All Usage Examples Of libphonenumber\PhoneNumberUtil::resetInstance
PhoneNumberUtil