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