public testEnd ( ) |
public function testEnd()
{
$i = 0;
$loop = new Loop();
$loop->execute(function () use($loop, &$i) {
$i++;
$loop->end();
});
$this->assertEquals(1, $i);
}