We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 534dfd5 commit 0482adeCopy full SHA for 0482ade
tests/Guzzle6PromiseTest.php
@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+namespace Http\Adapter\Tests;
4
5
+use GuzzleHttp\Exception as GuzzleExceptions;
6
+use GuzzleHttp\Promise\RejectedPromise;
7
+use Http\Adapter\Guzzle6Promise;
8
9
+/**
10
+ * @author Márk Sági-Kazár <[email protected]>
11
+ */
12
+class Guzzle6PromiseTest extends \PHPUnit_Framework_TestCase
13
+{
14
+ /**
15
+ * @expectedException \Exception
16
17
+ public function testNonDomainExceptionIsHandled()
18
+ {
19
+ $request = $this->prophesize('Psr\Http\Message\RequestInterface');
20
+ $promise = new RejectedPromise(new \Exception());
21
22
+ $guzzlePromise = new Guzzle6Promise($promise, $request->reveal());
23
24
+ $guzzlePromise->wait();
25
+ }
26
+}
0 commit comments