public function AggregateExceptionTest::testHasReason in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/promises/tests/AggregateExceptionTest.php \GuzzleHttp\Promise\Tests\AggregateExceptionTest::testHasReason()
File
- vendor/
guzzlehttp/ promises/ tests/ AggregateExceptionTest.php, line 8
Class
Namespace
GuzzleHttp\Promise\TestsCode
public function testHasReason() {
$e = new AggregateException('foo', [
'baz',
'bar',
]);
$this
->assertContains('foo', $e
->getMessage());
$this
->assertEquals([
'baz',
'bar',
], $e
->getReason());
}