public getProcessCount ( ) : integer | ||
return | integer |
public function getProcessCount()
{
return count($this->children);
}
public function testCountableInterface() { $this->manager->fork(function () { usleep(5000); }); $this->assertCount(1, $this->manager); $this->assertEquals(1, $this->manager->getProcessCount()); }