Skip to content

Commit 98a69af

Browse files
committed
Rename env var
1 parent 5708fb7 commit 98a69af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Context/WhenStepDefinitions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function when_i_launch_in_the_background( $cmd ) {
3535
* @When /^I (run|try) `([^`]+)`$/
3636
*/
3737
public function when_i_run( $mode, $cmd ) {
38-
$with_code_coverage = (string) getenv( 'BEHAT_CODE_COVERAGE' );
38+
$with_code_coverage = (string) getenv( 'WP_CLI_TEST_COVERAGE' );
3939
if ( \in_array( $with_code_coverage, [ 'true', '1' ], true ) ) {
4040
$cmd = preg_replace( '/(^wp )|( wp )|(\/wp )/', '$1$2$3--require={PROJECT_DIR}/vendor/wp-cli/wp-cli-tests/utils/maybe-generate-wp-cli-coverage.php ', $cmd );
4141
}

0 commit comments

Comments
 (0)