You are here

public function FunctionsTest::testCallsEachLimit in Zircon Profile 8

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

File

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

Class

FunctionsTest

Namespace

GuzzleHttp\Promise\Tests

Code

public function testCallsEachLimit() {
  $p = new Promise();
  $aggregate = \GuzzleHttp\Promise\each_limit($p, 2);
  $p
    ->resolve('a');
  P\queue()
    ->run();
  $this
    ->assertEquals($p::FULFILLED, $aggregate
    ->getState());
}