public function FunctionsTest::testUnwrapsPromisesWithKeys in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/functionsTest.php \GuzzleHttp\Promise\Tests\FunctionsTest::testUnwrapsPromisesWithKeys()
File
- vendor/
guzzlehttp/ promises/ tests/ functionsTest.php, line 77
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testUnwrapsPromisesWithKeys() {
$promises = [
'foo' => new FulfilledPromise('a'),
'bar' => new FulfilledPromise('b'),
];
$this
->assertEquals([
'foo' => 'a',
'bar' => 'b',
], \GuzzleHttp\Promise\unwrap($promises));
}