public function testPipeWithoutEnd() { $readable = new Stub\ReadableStreamStub(); $writable = $this->getMock('React\\Stream\\WritableStreamInterface'); $writable->expects($this->never())->method('end'); Util::pipe($readable, $writable, array('end' => false)); $readable->end(); }
public function pipe(WritableStreamInterface $dest, array $options = []) { if ($this === $dest) { throw new \Exception('Can\'t pipe stream into itself!'); } Util::pipe($this, $dest, $options); return $dest; }
public function pipe(WritableStreamInterface $dest, array $options = array()) { Util::pipe($this, $dest, $options); return $dest; }
public function pipe(WritableStreamInterface $dest, array $options = []) { Util::pipe($this, $dest, $options); }