Kraken\_Module\Loop\LoopTest::testApiFlush_FlushesAllHandlers_WhenAllFlagSetToTrue PHP Method

testApiFlush_FlushesAllHandlers_WhenAllFlagSetToTrue() public method

public testApiFlush_FlushesAllHandlers_WhenAllFlagSetToTrue ( Kraken\Loop\LoopExtendedInterface | Kraken\Loop\LoopModelInterface | mixed $loop )
$loop Kraken\Loop\LoopExtendedInterface | Kraken\Loop\LoopModelInterface | mixed
    public function testApiFlush_FlushesAllHandlers_WhenAllFlagSetToTrue($loop)
    {
        $stream = $this->createStream();
        $loop->onAfterTick($this->expectCallableNever());
        $loop->onBeforeTick($this->expectCallableNever());
        $loop->addWriteStream($stream, $this->expectCallableNever());
        $loop->addReadStream($stream, $this->expectCallableNever());
        $loop->erase(true);
        $loop->tick();
        unset($stream);
        unset($loop);
    }
LoopTest