/** * shell_exec() mock to capture invocation parameters for the actual \shell_exec() function * * @param $command * @return string */ function shell_exec($command) { $output = ExecRecorder::$execOutput[ExecRecorder::$execCalled]; ExecRecorder::$execCalled++; ExecRecorder::$execCommand = $command; return $output; }