You are here

public function FunctionsTest::testLotsOfTryCatchingWaitingDoesNotBlowStack in Zircon Profile 8

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

File

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

Class

FunctionsTest

Namespace

GuzzleHttp\Promise\Tests

Code

public function testLotsOfTryCatchingWaitingDoesNotBlowStack() {
  $promise = $this
    ->createLotsOfFlappingPromise();
  $promise
    ->then(function ($v) use (&$r) {
    $r = $v;
  });
  $this
    ->assertEquals(999, $promise
    ->wait());
  $this
    ->assertEquals(999, $r);
}