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

testApiRemoveReadStream_RemovesReadHandler_AfterReading() public method

public testApiRemoveReadStream_RemovesReadHandler_AfterReading ( Kraken\Loop\LoopExtendedInterface | Kraken\Loop\LoopModelInterface | mixed $loop )
$loop Kraken\Loop\LoopExtendedInterface | Kraken\Loop\LoopModelInterface | mixed
    public function testApiRemoveReadStream_RemovesReadHandler_AfterReading($loop)
    {
        $stream = $this->createStream();
        $loop->addReadStream($stream, $this->expectCallableOnce());
        $this->writeToStream($stream, "foo\n");
        $loop->tick();
        $loop->removeReadStream($stream);
        $this->writeToStream($stream, "bar\n");
        $loop->tick();
        unset($stream);
        unset($loop);
    }
LoopTest