Skip to content

Commit 887ba24

Browse files
committed
Look into getcwd() first when searching for vendor folder
1 parent e9ad6b2 commit 887ba24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Context/FeatureContext.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public static function get_vendor_dir() {
111111

112112
// We try to detect the vendor folder in the most probable locations.
113113
$vendor_locations = [
114+
// wp-cli/wp-cli-tests is a dependency of the current working dir.
115+
getcwd() . '/vendor',
114116
// wp-cli/wp-cli-tests is the root project.
115117
dirname( dirname( __DIR__ ) ) . '/vendor',
116118
// wp-cli/wp-cli-tests is a dependency.

0 commit comments

Comments
 (0)