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