public function hasAlive() { return count($this->children) > 0; }
public function testHasNoAliveAfterWait() { $this->manager->fork(function () { usleep(5000); }); $this->manager->wait(); $this->assertFalse($this->manager->hasAlive()); }