Skip to content

Fix: FileFinder silently drops glob paths from phpunit source directories#23

Open
ItsReddi wants to merge 1 commit intopestphp:4.xfrom
ItsReddi:bugfix/fixing-glob-support-for-modular-applications
Open

Fix: FileFinder silently drops glob paths from phpunit source directories#23
ItsReddi wants to merge 1 commit intopestphp:4.xfrom
ItsReddi:bugfix/fixing-glob-support-for-modular-applications

Conversation

@ItsReddi
Copy link
Copy Markdown

When phpunit.xml uses glob patterns in <source><include><directory> (e.g. Modules/*/app), PHPUnit resolves the glob at runtime, but pest-plugin-mutate receives the literal unresolved string from PHPUnit's configuration object. Since is_dir("Modules/*/app") returns false.

Affecting any project where phpunit.xml uses wildcard patterns.

Fixes pestphp/pest#1313

paths without `*` follow the existing logic unchanged. Only glob-containing paths get expanded via `glob()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[4.x] 0 Mutations for 0 Files created

1 participant