public function FunctionsTest::testCallsEachLimit in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/functionsTest.php \GuzzleHttp\Promise\Tests\FunctionsTest::testCallsEachLimit()
File
- vendor/
guzzlehttp/ promises/ tests/ functionsTest.php, line 250
Class
Namespace
GuzzleHttp\Promise\TestsCode
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());
}