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:
parent
e7ab6becf9
commit
27c4cc3cc4
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user