bypass-finals

Removes `final` and `readonly` keywords from source code on-the-fly and allows mocking of final methods and classes. It can be used together with any test tool such as PHPUnit or Mockery. (by dg)

Bypass-finals Alternatives

Similar projects and alternatives to bypass-finals

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better bypass-finals alternative or higher similarity.

bypass-finals reviews and mentions

Posts with mentions or reviews of bypass-finals. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-11.
  • BillaBear - Design Decisions ‐ Not Using Final Classes
    2 projects | /r/PHP | 11 Jul 2023
    I had this issue when working with Dibi as I needed to mock final methods. You can use this https://github.com/dg/bypass-finals package and forget all the debate about finals against non-final.
  • Laravel considered harmful
    13 projects | /r/PHP | 28 Apr 2023
    It definitely is my job. If you feel you should ignore best practices and author's opinion, use something like this: https://github.com/dg/bypass-finals
  • Design Decisions: Why use final classes
    2 projects | /r/PHP | 1 Dec 2022
    Even with the keyword final it's still possible to extend by using the final disable library https://github.com/dg/bypass-finals but the fact you needed to disable it makes it very clear that it's unsupported behaviour.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 26 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic bypass-finals repo stats
3
442
5.4
17 days ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com