public function PromiseTest::testThrowsWhenUnwrapIsRejectedWithNonException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/PromiseTest.php \GuzzleHttp\Promise\Tests\PromiseTest::testThrowsWhenUnwrapIsRejectedWithNonException()
@expectedException \GuzzleHttp\Promise\RejectionException @expectedExceptionMessage The promise was rejected with reason: foo
File
- vendor/
guzzlehttp/ promises/ tests/ PromiseTest.php, line 83
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testThrowsWhenUnwrapIsRejectedWithNonException() {
$p = new Promise(function () use (&$p) {
$p
->reject('foo');
});
$p
->wait();
}