public function FunctionsTest::testLotsOfSynchronousWaitDoesNotBlowStack in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/functionsTest.php \GuzzleHttp\Promise\Tests\FunctionsTest::testLotsOfSynchronousWaitDoesNotBlowStack()
File
- vendor/
guzzlehttp/ promises/ tests/ functionsTest.php, line 459
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testLotsOfSynchronousWaitDoesNotBlowStack() {
$promise = $this
->createLotsOfSynchronousPromise();
$promise
->then(function ($v) use (&$r) {
$r = $v;
});
$this
->assertEquals(999, $promise
->wait());
$this
->assertEquals(999, $r);
}