Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mocking final classes #7591

Merged
merged 1 commit into from Feb 5, 2022

Conversation

weirdan
Copy link
Collaborator

@weirdan weirdan commented Feb 5, 2022

This package intercepts file reads (including included files) and strips the final keyword when run under PHPUnit, allowing us to mock final classes (that magically become non-final).

One downside of this approach could be that some tests (like end-to-end tests) may legitimately need to read a file containing a final keyword.

@weirdan weirdan added the release:internal The PR will be included in 'Internal changes' section of the release notes label Feb 5, 2022
@weirdan weirdan requested a review from orklah February 5, 2022 04:41
@weirdan weirdan merged commit ead3c20 into vimeo:master Feb 5, 2022
@weirdan weirdan deleted the allow-mocking-final-classes branch February 5, 2022 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:internal The PR will be included in 'Internal changes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants