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 2968d91 commit f415418Copy full SHA for f415418
src/TestCase.php
@@ -2,6 +2,8 @@
2
3
namespace Omnipay\Tests;
4
5
+use Http\Discovery\HttpClientDiscovery;
6
+use Http\Discovery\Strategy\MockClientStrategy;
7
use Mockery as m;
8
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
9
use Omnipay\Common\Http\Client;
@@ -34,6 +36,13 @@ abstract class TestCase extends PHPUnitTestCase
34
36
/** @var HttpRequest */
35
37
private $httpRequest;
38
39
+ protected function setUp(): void
40
+ {
41
+ parent::setUp();
42
+
43
+ HttpClientDiscovery::prependStrategy(MockClientStrategy::class);
44
+ }
45
46
/**
47
* Converts a string to camel case
48
*
0 commit comments