public function FunctionsTest::testCanInspectRejectedPromiseWithNormalException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/functionsTest.php \GuzzleHttp\Promise\Tests\FunctionsTest::testCanInspectRejectedPromiseWithNormalException()
File
- vendor/
guzzlehttp/ promises/ tests/ functionsTest.php, line 240
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testCanInspectRejectedPromiseWithNormalException() {
$e = new \Exception('foo');
$p = new RejectedPromise($e);
$this
->assertEquals([
'state' => 'rejected',
'reason' => $e,
], \GuzzleHttp\Promise\inspect($p));
}