From d178d52aa6cc3c9d5ad96d4d42c018331934f2e8 Mon Sep 17 00:00:00 2001 From: cmp167 Date: Fri, 8 Mar 2024 02:34:00 +0300 Subject: [PATCH] Add cmpSysExecTest --- cmpUtil.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cmpUtil.php b/cmpUtil.php index 692d0d5..db15858 100644 --- a/cmpUtil.php +++ b/cmpUtil.php @@ -637,6 +637,23 @@ return explode("\n", $out); } + function cmpSysExecTest() { + $a = array( + "ping" , + "-c" , + "4" , + "127.0.0.1" , + ); + + $this->d("Launch"); + $this->d($a); + + $this->cmpSysExec($a, array( + "silent" => false, + "eventString" => true, + "eventStringStdOut" => array("call" => [$this, "d"]) + )); + } function getGitStatus($dir = ".") {