Giter VIP home page Giter VIP logo

Comments (5)

kunicmarko20 avatar kunicmarko20 commented on June 22, 2024 3

I'm intentionally using version 1.1 of the Sonata bundle because for whatever reason the GoogleAuthenticator class is final in the 2.0 version, which makes it impossible to mock it in test cases.

This is not the reason for us to remove the final and there are other ways to write tests. We use final so people won't extend the classes which are not meant to be extended and make us unable to do changes to classes without a BC Breaks because there is someone that extended that class.

Still, that class should have an interface, and that would solve your "problem" with tests?

Not sure if we can introduce an interface without it being a BC Break, cc @greg0ire wdyt?

Since the class is final we probably can just add an interface and release a minor version with it.

from googleauthenticator.

umpirsky avatar umpirsky commented on June 22, 2024 1

That's what I assumed, thanks for confirmation.

If final answer is no, just close the issue.

ะฅะฒะฐะปะฐ!

from googleauthenticator.

greg0ire avatar greg0ire commented on June 22, 2024

I'm OK with adding an interface ๐Ÿ‘

from googleauthenticator.

OskarStark avatar OskarStark commented on June 22, 2024

Me, too

@umpirsky are you willing to create a PR?

from googleauthenticator.

umpirsky avatar umpirsky commented on June 22, 2024

Done #111.

from googleauthenticator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.