You are here

public function AggregateExceptionTest::testHasReason in Zircon Profile 8

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

File

vendor/guzzlehttp/promises/tests/AggregateExceptionTest.php, line 8

Class

AggregateExceptionTest

Namespace

GuzzleHttp\Promise\Tests

Code

public function testHasReason() {
  $e = new AggregateException('foo', [
    'baz',
    'bar',
  ]);
  $this
    ->assertContains('foo', $e
    ->getMessage());
  $this
    ->assertEquals([
    'baz',
    'bar',
  ], $e
    ->getReason());
}