public function PromiseTest::testInvokesWaitFunction in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/PromiseTest.php \GuzzleHttp\Promise\Tests\PromiseTest::testInvokesWaitFunction()
File
- vendor/
guzzlehttp/ promises/ tests/ PromiseTest.php, line 64
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testInvokesWaitFunction() {
$p = new Promise(function () use (&$p) {
$p
->resolve('10');
});
$this
->assertEquals('10', $p
->wait());
}