public function testApiRemoveStream_RemovesWriteReadHandlers_AfterHandling($loop) { $stream = $this->createStream(); $loop->addReadStream($stream, $this->expectCallableOnce()); $loop->addWriteStream($stream, $this->expectCallableOnce()); $this->writeToStream($stream, "bar\n"); $loop->tick(); $loop->removeStream($stream); $this->writeToStream($stream, "bar\n"); $loop->tick(); unset($stream); unset($loop); }