You are here

public function FulfilledPromiseTest::testReturnsValueWhenWaitedUpon in Zircon Profile 8.0

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

File

vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php, line 12

Class

FulfilledPromiseTest
@covers GuzzleHttp\Promise\FulfilledPromise

Namespace

GuzzleHttp\Tests\Promise

Code

public function testReturnsValueWhenWaitedUpon() {
  $p = new FulfilledPromise('foo');
  $this
    ->assertEquals('fulfilled', $p
    ->getState());
  $this
    ->assertEquals('foo', $p
    ->wait(true));
}