public function FunctionsTest::testThrowsIfImpossibleToWaitForSomeCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/functionsTest.php \GuzzleHttp\Promise\Tests\FunctionsTest::testThrowsIfImpossibleToWaitForSomeCount()
@expectedException \GuzzleHttp\Promise\AggregateException @expectedExceptionMessage Not enough promises to fulfill count
File
- vendor/
guzzlehttp/ promises/ tests/ functionsTest.php, line 167
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testThrowsIfImpossibleToWaitForSomeCount() {
$a = new Promise(function () use (&$a) {
$a
->resolve('a');
});
$d = \GuzzleHttp\Promise\some(2, [
$a,
]);
$d
->wait();
}