Beispiel #1
0
 public function testException()
 {
     $this->setExpectedException('\\Ark4ne\\Processes\\Exception\\ProcessNullPIDException');
     new Process(0);
     $this->setExpectedException('\\Ark4ne\\Processes\\Exception\\ProcessNullPIDException');
     new Process(null);
     $process = new Process(1);
     $process->setPid(0);
     System::kill($process);
     Manager::os()->kill($process);
 }
Beispiel #2
0
 /**
  * Kill the process.
  */
 public function kill()
 {
     System::kill($this);
 }