You are here

public function RejectionExceptionTest::testCanGetReasonMessageFromJson in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/promises/tests/RejectionExceptionTest.php \GuzzleHttp\Promise\Tests\RejectionExceptionTest::testCanGetReasonMessageFromJson()

File

vendor/guzzlehttp/promises/tests/RejectionExceptionTest.php, line 41

Class

RejectionExceptionTest
@covers GuzzleHttp\Promise\RejectionException

Namespace

GuzzleHttp\Promise\Tests

Code

public function testCanGetReasonMessageFromJson() {
  $reason = new Thing2();
  $e = new RejectionException($reason);
  $this
    ->assertContains("{}", $e
    ->getMessage());
}