You are here

public function RejectedPromiseTest::testReturnsSelfWhenNoOnReject in Zircon Profile 8

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

File

vendor/guzzlehttp/promises/tests/RejectedPromiseTest.php, line 78

Class

RejectedPromiseTest
@covers GuzzleHttp\Promise\RejectedPromise

Namespace

GuzzleHttp\Promise\Tests

Code

public function testReturnsSelfWhenNoOnReject() {
  $p = new RejectedPromise('a');
  $this
    ->assertSame($p, $p
    ->then());
}