public function testKill() { $crazy_pid = 1239883477; $return = $this->process->kill($crazy_pid); $this->assertInternalType('boolean', $return); $this->assertFalse($return); }
public function testIsRunning() { $crazy_pid = 1239883477; $this->assertFalse($this->linuxProcess->isRunning($crazy_pid)); $this->assertInternalType('boolean', $this->linuxProcess->isRunning($crazy_pid)); $my_pid = getmypid(); $this->assertTrue($this->linuxProcess->isRunning($my_pid)); $this->assertInternalType('boolean', $this->linuxProcess->isRunning($my_pid)); }