Example #1
0
 public function testBasic()
 {
     $process = new Process(1);
     $this->assertEquals(1, $process->getPid());
     $this->assertEquals('', $process->getProgram());
     $this->assertEquals('', $process->getCommand());
 }
Example #2
0
 /**
  * Kill the process.
  *
  * @param Process $process
  *
  * @return string
  */
 public function kill(Process $process)
 {
     return exec("taskkill /F /PID {$process->getPid()}");
 }
Example #3
0
 /**
  * Kill the process.
  *
  * @param Process $process
  *
  * @return mixed
  */
 public function kill(Process $process)
 {
     return exec("kill -9 {$process->getPid()}");
 }