You are here

public function FunctionsTest::testUnwrapsPromisesWithKeys in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/tests/functionsTest.php \GuzzleHttp\Promise\Tests\FunctionsTest::testUnwrapsPromisesWithKeys()

File

vendor/guzzlehttp/promises/tests/functionsTest.php, line 77

Class

FunctionsTest

Namespace

GuzzleHttp\Promise\Tests

Code

public function testUnwrapsPromisesWithKeys() {
  $promises = [
    'foo' => new FulfilledPromise('a'),
    'bar' => new FulfilledPromise('b'),
  ];
  $this
    ->assertEquals([
    'foo' => 'a',
    'bar' => 'b',
  ], \GuzzleHttp\Promise\unwrap($promises));
}