function testIncrement()
{
/** @var $f callback */
$f = F::increment();
$this->assertSame(0, $f());
$this->assertSame(1, $f());
$this->assertSame(2, $f());
$g = F::increment();
$this->assertSame(0, $g());
$this->assertSame(1, $g());
$this->assertSame(3, $f());
}