File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -408,12 +408,18 @@ public static function get_bin_path(): ?string {
408408
409409 $ bin = Utils \is_windows () ? 'wp.bat ' : 'wp ' ;
410410
411+ wp_cli_behat_env_debug ( 'Searching for WP-CLI binary... ' );
411412 foreach ( $ bin_paths as $ path ) {
412413 $ full_bin_path = $ path . DIRECTORY_SEPARATOR . $ bin ;
414+ wp_cli_behat_env_debug ( "Checking path: {$ full_bin_path }" );
415+ wp_cli_behat_env_debug ( 'is_file: ' . ( is_file ( $ full_bin_path ) ? 'true ' : 'false ' ) );
416+ wp_cli_behat_env_debug ( 'is_executable: ' . ( is_executable ( $ full_bin_path ) ? 'true ' : 'false ' ) );
413417 if ( is_file ( $ full_bin_path ) && is_executable ( $ full_bin_path ) ) {
418+ wp_cli_behat_env_debug ( "Found at: {$ path }" );
414419 return $ path ;
415420 }
416421 }
422+ wp_cli_behat_env_debug ( 'WP-CLI binary not found in search paths. ' );
417423
418424 return null ;
419425 }
You can’t perform that action at this time.
0 commit comments