You are here

public function FulfilledPromiseTest::testCannotResolve in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php \GuzzleHttp\Tests\Promise\FulfilledPromiseTest::testCannotResolve()

@expectedException \LogicException @exepctedExceptionMessage Cannot resolve a fulfilled promise

File

vendor/guzzlehttp/promises/tests/FulfilledPromiseTest.php, line 31

Class

FulfilledPromiseTest
@covers GuzzleHttp\Promise\FulfilledPromise

Namespace

GuzzleHttp\Tests\Promise

Code

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