You are here

public function PromiseTest::testRejectsAndThrowsWhenWaitFailsToResolve in Zircon Profile 8

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

@expectedException \GuzzleHttp\Promise\RejectionException

File

vendor/guzzlehttp/promises/tests/PromiseTest.php, line 73

Class

PromiseTest
@covers GuzzleHttp\Promise\Promise

Namespace

GuzzleHttp\Promise\Tests

Code

public function testRejectsAndThrowsWhenWaitFailsToResolve() {
  $p = new Promise(function () {
  });
  $p
    ->wait();
}