public function FulfilledPromiseTest::testCannotReject in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php \GuzzleHttp\Tests\Promise\FulfilledPromiseTest::testCannotReject()
@expectedException \LogicException @exepctedExceptionMessage Cannot reject a fulfilled promise
File
- vendor/
guzzlehttp/ promises/ tests/ FulfilledPromiseTest.php, line 41
Class
Namespace
GuzzleHttp\Tests\PromiseCode
public function testCannotReject() {
$p = new FulfilledPromise('foo');
$p
->reject('bar');
}