/** @test */ public function itShouldForwardReadableCallsToReadableStream() { $readable = $this->getMock('React\\Stream\\ReadableStreamInterface'); $readable->expects($this->once())->method('isReadable'); $readable->expects($this->once())->method('pause'); $readable->expects($this->once())->method('resume'); $writable = $this->getMock('React\\Stream\\WritableStreamInterface'); $composite = new CompositeStream($readable, $writable); $composite->isReadable(); $composite->pause(); $composite->resume(); }