public function FulfilledPromiseTest::testDoesNotTryToFulfillTwiceDuringTrampoline in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php \GuzzleHttp\Tests\Promise\FulfilledPromiseTest::testDoesNotTryToFulfillTwiceDuringTrampoline()
File
- vendor/
guzzlehttp/ promises/ tests/ FulfilledPromiseTest.php, line 101
Class
Namespace
GuzzleHttp\Tests\PromiseCode
public function testDoesNotTryToFulfillTwiceDuringTrampoline() {
$fp = new FulfilledPromise('a');
$t1 = $fp
->then(function ($v) {
return $v . ' b';
});
$t1
->resolve('why!');
$this
->assertEquals('why!', $t1
->wait());
}