getProcessCount() public method

Return count of currently running child process.
public getProcessCount ( ) : integer
return integer
Exemplo n.º 1
0
 public function testCountableInterface()
 {
     $this->manager->fork(function () {
         usleep(5000);
     });
     $this->assertCount(1, $this->manager);
     $this->assertEquals(1, $this->manager->getProcessCount());
 }