You are here

public function FunctionsTest::testKnowsIfFulfilled in Zircon Profile 8

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

File

vendor/guzzlehttp/promises/tests/functionsTest.php, line 275

Class

FunctionsTest

Namespace

GuzzleHttp\Promise\Tests

Code

public function testKnowsIfFulfilled() {
  $p = new FulfilledPromise(null);
  $this
    ->assertTrue(P\is_fulfilled($p));
  $this
    ->assertFalse(P\is_rejected($p));
}