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