Function test_php_scripts

Source
pub fn test_php_scripts(
    lib_path: impl AsRef<Path>,
    scripts: &[&dyn AsRef<Path>],
)
Expand description

Check your extension by executing multiple php scripts with success condition.

This function executes multiple PHP scripts and checks if all of them return success status. It’s a convenience wrapper around test_php_scripts_with_condition with a default success condition.

§Arguments

  • lib_path - The path to the extension library file
  • scripts - A slice of references to PHP script paths to execute

§Panics

Panics if any script execution fails or returns non-success status.