You are here

public function PromiseTest::testCannotRejectWithSelf in Zircon Profile 8

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

@expectedException \LogicException @expectedExceptionMessage Cannot fulfill or reject a promise with itself

File

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

Class

PromiseTest
@covers GuzzleHttp\Promise\Promise

Namespace

GuzzleHttp\Promise\Tests

Code

public function testCannotRejectWithSelf() {
  $p = new Promise();
  $p
    ->reject($p);
}