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