Skip to content

Commit

Permalink
Look into getcwd() first when searching for vendor folder
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Oct 3, 2023
1 parent e9ad6b2 commit 887ba24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public static function get_vendor_dir() {

// We try to detect the vendor folder in the most probable locations.
$vendor_locations = [
// wp-cli/wp-cli-tests is a dependency of the current working dir.
getcwd() . '/vendor',
// wp-cli/wp-cli-tests is the root project.
dirname( dirname( __DIR__ ) ) . '/vendor',
// wp-cli/wp-cli-tests is a dependency.
Expand Down

0 comments on commit 887ba24

Please sign in to comment.