Lines Matching refs:Stream
2 namespace GuzzleHttp\Tests\Stream;
4 use GuzzleHttp\Stream\Stream;
9 * @covers GuzzleHttp\Stream\Stream
16 new Stream(true);
23 $stream = new Stream($handle);
37 $stream = new Stream($handle);
46 $stream = new Stream($handle);
56 $stream = new Stream($handle);
67 $stream = new Stream($handle);
78 $stream = new Stream($handle);
88 $stream = new Stream($handle);
99 $stream = new Stream($h);
110 $stream = new Stream($handle);
124 $stream = Stream::factory($h);
132 $stream = new Stream($r);
163 $stream = new Stream($handle);
175 $stream = Stream::factory('foo');
176 $this->assertInstanceOf('GuzzleHttp\Stream\Stream', $stream);
183 $s = Stream::factory();
184 $this->assertInstanceOf('GuzzleHttp\Stream\Stream', $s);
190 $s = Stream::factory($r);
191 $this->assertInstanceOf('GuzzleHttp\Stream\Stream', $s);
198 $s = Stream::factory($r);
199 $this->assertInstanceOf('GuzzleHttp\Stream\Stream', $s);
205 $s = Stream::factory('foo');
206 $this->assertSame($s, Stream::factory($s));
212 Stream::factory(new \stdClass());
217 $s = Stream::factory('foo', ['metadata' => ['hwm' => 3]]);
224 $s = Stream::factory('', ['size' => 10]);
231 $p = Stream::factory($a);
232 $this->assertInstanceOf('GuzzleHttp\Stream\PumpStream', $p);