Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
pid_consumer_functions_mocks.php
Go to the documentation of this file.
1 <?php
7 
12 function posix_getpgid($pid)
13 {
14  if ($pid === 11111) {
15  return 22222;
16  }
17 
18  return false;
19 }
20 
26 function exec($command, array &$output = null, &$return_var = null)
27 {
28  $output = ['PID TTY TIME CMD'];
29  $return_var = 1;
30 
31  if ($command === 'ps -p 11111') {
32  $output[] = ['11111 ?? 25:49.42 /php'];
33  $return_var = 0;
34  }
35 }
exec($command, array &$output=null, &$return_var=null)