You are here

public function FulfilledPromiseTest::testCannotCancel in Zircon Profile 8

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

File

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

Class

FulfilledPromiseTest
@covers GuzzleHttp\Promise\FulfilledPromise

Namespace

GuzzleHttp\Tests\Promise

Code

public function testCannotCancel() {
  $p = new FulfilledPromise('foo');
  $this
    ->assertEquals('fulfilled', $p
    ->getState());
  $p
    ->cancel();
  $this
    ->assertEquals('foo', $p
    ->wait());
}