1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-03-15 03:40:09 +01:00

Updating for Guzzle streams and ring updatres

This commit is contained in:
Michael Dowling 2014-10-09 12:46:36 -07:00
parent e7ab6becf9
commit 27c4cc3cc4
3 changed files with 5 additions and 6 deletions

@ -202,6 +202,11 @@ class Pool implements FutureInterface
return $this->promise->then($onFulfilled, $onRejected, $onProgress);
}
public function promise()
{
return $this->promise;
}
private function coerceIterable($requests)
{
if ($requests instanceof \Iterator) {

@ -212,11 +212,6 @@ class PostBody implements PostBodyInterface
return false;
}
public function flush()
{
return false;
}
public function getMetadata($key = null)
{
return $key ? null : [];

@ -167,7 +167,6 @@ class PostBodyTest extends \PHPUnit_Framework_TestCase
$b = new PostBody();
$this->assertEquals([], $b->getMetadata());
$this->assertNull($b->getMetadata('foo'));
$this->assertFalse($b->flush());
}
public function testCreatesMultipartUploadWithMultiFields()