You are here

class AggregateExceptionTest in Zircon Profile 8

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

Hierarchy

  • class \GuzzleHttp\Promise\Tests\AggregateExceptionTest extends \GuzzleHttp\Promise\Tests\PHPUnit_Framework_TestCase

Expanded class hierarchy of AggregateExceptionTest

File

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

Namespace

GuzzleHttp\Promise\Tests
View source
class AggregateExceptionTest extends \PHPUnit_Framework_TestCase {
  public function testHasReason() {
    $e = new AggregateException('foo', [
      'baz',
      'bar',
    ]);
    $this
      ->assertContains('foo', $e
      ->getMessage());
    $this
      ->assertEquals([
      'baz',
      'bar',
    ], $e
      ->getReason());
  }

}

Members