You are here

public function FulfilledPromiseTest::testCannotReject in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

FulfilledPromiseTest
@covers GuzzleHttp\Promise\FulfilledPromise

Namespace

GuzzleHttp\Tests\Promise

Code

public function testCannotReject() {
  $p = new FulfilledPromise('foo');
  $p
    ->reject('bar');
}