Code Duplication    Length = 7-7 lines in 2 locations

docs/examples/bootstrap.php 1 location

@@ 39-45 (lines=7) @@
36
	$_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib';
37
}
38
39
if ( ! isset( $_tests_dir ) || ! file_exists( $_tests_dir . '/includes/bootstrap.php' ) ) {
40
	echo 'Failed to automatically locate WordPress or wordpress-develop to run tests.' . PHP_EOL;
41
	echo PHP_EOL;
42
	echo 'Set the WP_DEVELOP_DIR environment variable to point to a copy of WordPress' . PHP_EOL;
43
	echo 'or wordpress-develop.' . PHP_EOL;
44
	exit( 1 );
45
}
46
47
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
48
echo "Using test root $_tests_dir\n";

projects/plugins/jetpack/tests/php/bootstrap.php 1 location

@@ 46-52 (lines=7) @@
43
	$test_root = '/tmp/wordpress-tests-lib';
44
}
45
46
if ( ! isset( $test_root ) || ! file_exists( $test_root . '/includes/bootstrap.php' ) ) {
47
	echo 'Failed to automatically locate WordPress or wordpress-develop to run tests.' . PHP_EOL;
48
	echo PHP_EOL;
49
	echo 'Set the WP_DEVELOP_DIR environment variable to point to a copy of WordPress' . PHP_EOL;
50
	echo 'or wordpress-develop.' . PHP_EOL;
51
	exit( 1 );
52
}
53
54
echo "Using test root $test_root\n";
55