Skip to content

Commit c2d228b

Browse files
authored
Merge pull request #180 from wp-cli/fix/look-into-working-dir-first
2 parents e9ad6b2 + 887ba24 commit c2d228b

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)