AggregateExceptionTest.php 438 B

123456789101112131415161718
  1. <?php
  2. declare(strict_types=1);
  3. namespace GuzzleHttp\Promise\Tests;
  4. use GuzzleHttp\Promise\AggregateException;
  5. use PHPUnit\Framework\TestCase;
  6. class AggregateExceptionTest extends TestCase
  7. {
  8. public function testHasReason(): void
  9. {
  10. $e = new AggregateException('foo', ['baz', 'bar']);
  11. $this->assertStringContainsString('foo', $e->getMessage());
  12. $this->assertSame(['baz', 'bar'], $e->getReason());
  13. }
  14. }