Look into getcwd()
first when searching for vendor folder
#180
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When the Behat context setup tried to find the
vendor
folder, it did not look into the current working folder first, instead always finding thevendor
folder within the tests dependency instead.This PR adapts the logic so that the current working directory gets searched first.
As an example, when running
composer behat
from within thewp-cli-dev/config-command
folder, this is the resulting change:BEFORE
AFTER
The main issue this has caused is that local configuration files used in packages to make sure the current source files are being loaded over any existing package had been ignored.