public function FulfilledPromiseTest::testReturnsValueWhenWaitedUpon in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php \GuzzleHttp\Tests\Promise\FulfilledPromiseTest::testReturnsValueWhenWaitedUpon()
File
- vendor/
guzzlehttp/ promises/ tests/ FulfilledPromiseTest.php, line 12
Class
Namespace
GuzzleHttp\Tests\PromiseCode
public function testReturnsValueWhenWaitedUpon() {
$p = new FulfilledPromise('foo');
$this
->assertEquals('fulfilled', $p
->getState());
$this
->assertEquals('foo', $p
->wait(true));
}