public function testShutdown()
{
$process = new \Jenner\SimpleFork\Process(function () {
sleep(3);
});
$time = time();
$process->start();
$process->shutdown(SIGKILL);
$this->assertFalse($process->isRunning());
$this->assertTrue(time() - $time < 3);
$this->assertTrue($process->ifSignal());
$this->assertEquals(0, $process->errno());
}