source: externals/php/vendor/guzzlehttp/promises/tests/AggregateExceptionTest.php@ 256102b

Last change on this file since 256102b was 01a620f, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago

Removed submodules for php externals and use composer to provide them and versioned them afterwards

  • Property mode set to 100644
File size: 382 bytes
RevLine 
[01a620f]1<?php
2namespace GuzzleHttp\Promise\Tests;
3
4use GuzzleHttp\Promise\AggregateException;
5
6class AggregateExceptionTest extends \PHPUnit_Framework_TestCase
7{
8 public function testHasReason()
9 {
10 $e = new AggregateException('foo', ['baz', 'bar']);
11 $this->assertContains('foo', $e->getMessage());
12 $this->assertEquals(['baz', 'bar'], $e->getReason());
13 }
14}
Note: See TracBrowser for help on using the repository browser.