Code Duplication    Length = 10-10 lines in 2 locations

tests/Unit/Service/AsyncExecutorTest.php 2 locations

@@ 92-101 (lines=10) @@
89
  /**
90
   * @param $command
91
   */
92
  function exec($command)
93
  {
94
    global $mockGlobalFunctions;
95
    global $lastExecCommand;
96
    if (isset($mockGlobalFunctions) && $mockGlobalFunctions === true) {
97
      $lastExecCommand = $command;
98
    } else {
99
      call_user_func_array('\exec', func_get_args());
100
    }
101
  }
102
103
  /**
104
   * @return mixed
@@ 106-115 (lines=10) @@
103
  /**
104
   * @return mixed
105
   */
106
  function php_uname()
107
  {
108
    global $mockGlobalFunctions;
109
    global $uname;
110
    if (isset($mockGlobalFunctions) && $mockGlobalFunctions === true) {
111
      return $uname;
112
    } else {
113
      return call_user_func_array('\php_uname', func_get_args());
114
    }
115
  }
116
117
  function pclose()
118
  {