public function FulfilledPromiseTest::testOtherwiseIsSugarForRejections in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php \GuzzleHttp\Tests\Promise\FulfilledPromiseTest::testOtherwiseIsSugarForRejections()
File
- vendor/
guzzlehttp/ promises/ tests/ FulfilledPromiseTest.php, line 93
Class
Namespace
GuzzleHttp\Tests\PromiseCode
public function testOtherwiseIsSugarForRejections() {
$c = null;
$p = new FulfilledPromise('foo');
$p
->otherwise(function ($v) use (&$c) {
$c = $v;
});
$this
->assertNull($c);
}