features/bootstrap/FeatureContext.php
private static function get_behat_internal_variables() {
		static $variables = null;

		if ( null !== $variables ) {
			return $variables;
		}

		$paths = [
			dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) . '/wp-cli/wp-cli/VERSION',
			dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) . '/VERSION',
			dirname( dirname( __DIR__ ) ) . '/vendor/wp-cli/wp-cli/VERSION',
		];

		$framework_root = dirname( dirname( __DIR__ ) );
		foreach ( $paths as $path ) {
			if ( file_exists( $path ) ) {
				$framework_root = (string) realpath( dirname( $path ) );
				break;
			}
		}

		$variables = [
			'FRAMEWORK_ROOT' => realpath( $framework_root ),
			'SRC_DIR'        => realpath( dirname( dirname( __DIR__ ) ) ),
			'PROJECT_DIR'    => realpath( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ),
		];

		return $variables;
	}
private static function get_behat_internal_variables() {
		static $variables = null;

		if ( null !== $variables ) {
			return $variables;
		}

		$paths = [
			dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) . '/wp-cli/wp-cli/VERSION',
			dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) . '/VERSION',
			dirname( dirname( __DIR__ ) ) . '/vendor/wp-cli/wp-cli/VERSION',
		];

		$framework_root = dirname( dirname( __DIR__ ) );
		foreach ( $paths as $path ) {
			if ( file_exists( $path ) ) {
				$framework_root = (string) realpath( dirname( $path ) );
				break;
			}
		}

		$variables = [
			'FRAMEWORK_ROOT' => realpath( $framework_root ),
			'SRC_DIR'        => realpath( dirname( dirname( __DIR__ ) ) ),
			'PROJECT_DIR'    => realpath( dirname( dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) ) ),
		];

		return $variables;
	}
private static function get_behat_internal_variables ( ) { static $ variables = null ; if ( null !== $ variables ) { return $ variables ; } $ paths = [ dirname ( dirname ( dirname ( dirname ( __DIR__ ) ) ) ) . '/wp-cli/wp-cli/VERSION' , dirname ( dirname ( dirname ( dirname ( dirname ( __DIR__ ) ) ) ) ) . '/VERSION' , dirname ( dirname ( __DIR__ ) ) . '/vendor/wp-cli/wp-cli/VERSION' , ] ; $ framework_root = dirname ( dirname ( __DIR__ ) ) ; foreach ( $ paths as $ path ) { if ( file_exists ( $ path ) ) { $ framework_root = ( string ) realpath ( dirname ( $ path ) ) ; break ; } } $ variables = [ 'FRAMEWORK_ROOT' => realpath ( $ framework_root ) , 'SRC_DIR' => realpath ( dirname ( dirname ( __DIR__ ) ) ) , 'PROJECT_DIR' => realpath ( dirname ( dirname ( dirname ( dirname ( dirname ( __DIR__ ) ) ) ) ) ) , ] ; return $ variables ; }
Get the internal variables to use within tests.

@return array Associative array of internal variables that will be mapped
into tests.
Get the internal variables to use within tests .