Skip to content

Commit c40d545

Browse files
committed
Declare new PROJECT_DIR variable
This points to the source directory of the project where the test suite has been installed
1 parent 4ec287a commit c40d545

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/bootstrap/FeatureContext.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ private static function get_behat_internal_variables() {
209209
}
210210

211211
$variables = [
212-
'SRC_DIR' => realpath( dirname( dirname( __DIR__ ) ) ),
213212
'FRAMEWORK_ROOT' => realpath( $framework_root ),
213+
'SRC_DIR' => realpath( dirname( __DIR__, 2 ) ),
214+
'PROJECT_DIR' => realpath( dirname( __DIR__, 5 ) ),
214215
];
215216

216217
return $variables;

0 commit comments

Comments
 (0)