You are here

public function FunctionsTest::testCanScheduleThunkWithWait in Zircon Profile 8.0

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

File

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

Class

FunctionsTest

Namespace

GuzzleHttp\Promise\Tests

Code

public function testCanScheduleThunkWithWait() {
  $tramp = P\queue();
  $promise = P\task(function () {
    return 'a';
  });
  $this
    ->assertEquals('a', $promise
    ->wait());
  $tramp
    ->run();
}