Repaired tests + refactored code for tests

This commit is contained in:
Dmitry Khomutov 2016-08-11 21:32:42 +07:00
commit 9de4fb51d3
37 changed files with 409 additions and 1125 deletions

View file

@ -28,14 +28,11 @@ class PosixProcessControl implements ProcessControlInterface
}
/**
* Sends a TERMINATE or KILL signal to the process using posix_kill.
*
* @param int $pid
* @param bool $forcefully Whether to send TERMINATE (false) or KILL (true).
* {@inheritdoc}
*/
public function kill($pid, $forcefully = false)
{
posix_kill($pid, $forcefully ? 9 : 15);
return posix_kill($pid, $forcefully ? 9 : 15);
}
/**