Function phper_test::test_php_scripts_with_condition[][src]

pub fn test_php_scripts_with_condition(
    exe_path: impl AsRef<Path>,
    scripts: &[(&dyn AsRef<Path>, &dyn Fn(Output) -> bool)]
Expand description

Check your extension by executing the php script, if the all your specified checkers are pass, than the test is pass.

  • exec_path is the path of the make executable, which will be used to detect the path of extension lib.

  • scripts is the slice of the tuple, format is (path of your php test script, checker function or closure).

See example logging integration test.