Beispiel #1
0
 /**
  * @dataProvider loopsProvider
  * @param LoopExtendedInterface|LoopModelInterface|mixed $loop
  */
 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);
 }