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

Change detection of /etc/shadow #412

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

fredden
Copy link
Contributor

@fredden fredden commented Sep 18, 2023

This is a work-around for file_exists() not working when infection/include-interceptor is loaded.

https:/infection/include-interceptor/blob/afdc4767617594ba745067505573b4bb358e1e14/src/IncludeInterceptor.php#L385
This calls is_readable(), but we specifically need a file which exists (hence calling file_exists()), but is not readable. This change works around this limitation in the infection framework/tooling. Ideally we'd find a file which is known to exist and be unreadable on each PHP_OS_FAMILY to make the tests more portable.

This should squash the last mutant being reported in #388.

This is a work-around for file_exists() not working when infection/include-interceptor is loaded.
Copy link
Collaborator

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fredden

@Ocramius Ocramius self-assigned this Sep 18, 2023
@Ocramius Ocramius added this to the 4.7.0 milestone Sep 18, 2023
@Ocramius Ocramius merged commit e16173c into maglnet:4.7.x Sep 18, 2023
17 checks passed
@fredden fredden deleted the infection/kill-all-mutants branch September 18, 2023 13:26
@fredden fredden mentioned this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants