You are here

public function FunctionsTest::testThrowsIfResolvedWithoutCountTotalResults in Zircon Profile 8

Same name and namespace in other branches
  1. 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

FunctionsTest

Namespace

GuzzleHttp\Promise\Tests

Code

public function testThrowsIfResolvedWithoutCountTotalResults() {
  $a = new Promise();
  $b = new Promise();
  $d = \GuzzleHttp\Promise\some(3, [
    $a,
    $b,
  ]);
  $a
    ->resolve('a');
  $b
    ->resolve('b');
  $d
    ->wait();
}