File tree 8 files changed +32
-8
lines changed
8 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 15
15
16
16
branches :
17
17
except :
18
- - /^analysis -.*$/
18
+ - /^patch -.*$/
19
19
20
20
matrix :
21
21
fast_finish : true
@@ -43,6 +43,14 @@ matrix:
43
43
- php : 7.3
44
44
env : DEPENDENCIES="dunglas/symfony-lock:^4"
45
45
46
+ # Test with httplug 1.x clients
47
+ - php : 7.2
48
+ env : DEPENDENCIES="php-http/buzz-adapter:^1.0 php-http/curl-client:^1.0 php-http/guzzle6-adapter:^1.1.1 php-http/react-adapter:^0.2.1 php-http/socket-client:^1.0"
49
+
50
+ # Test with httplug 2.x clients
51
+ - php : 7.2
52
+ env : DEPENDENCIES="php-http/guzzle6-adapter:^2.0.1"
53
+
46
54
# Latest commit to master
47
55
- php : 7.3
48
56
env : STABILITY="dev"
Original file line number Diff line number Diff line change 7
7
async_client : auto
8
8
clients :
9
9
acme :
10
- factory : httplug.factory.curl
10
+ factory : httplug.factory.guzzle6
11
11
plugins :
12
12
-
13
13
decoder :
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ class BuzzFactoryTest extends TestCase
14
14
{
15
15
public function testCreateClient ()
16
16
{
17
+ if (!class_exists (\Http \Adapter \Buzz \Client::class)) {
18
+ $ this ->markTestSkipped ('Buzz adapter is not installed ' );
19
+ }
20
+
17
21
$ factory = new BuzzFactory ($ this ->getMockBuilder (MessageFactory::class)->getMock ());
18
22
$ client = $ factory ->createClient ();
19
23
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ class CurlFactoryTest extends TestCase
15
15
{
16
16
public function testCreateClient ()
17
17
{
18
+ if (!class_exists (\Http \Client \Curl \Client::class)) {
19
+ $ this ->markTestSkipped ('Curl client is not installed ' );
20
+ }
21
+
18
22
$ factory = new CurlFactory (
19
23
$ this ->getMockBuilder (MessageFactory::class)->getMock (),
20
24
$ this ->getMockBuilder (StreamFactory::class)->getMock ()
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ class Guzzle6FactoryTest extends TestCase
13
13
{
14
14
public function testCreateClient ()
15
15
{
16
+ if (!class_exists (\Http \Adapter \Guzzle6 \Client::class)) {
17
+ $ this ->markTestSkipped ('Guzzle6 adapter is not installed ' );
18
+ }
19
+
16
20
$ factory = new Guzzle6Factory ();
17
21
$ client = $ factory ->createClient ();
18
22
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ class ReactFactoryTest extends TestCase
14
14
{
15
15
public function testCreateClient ()
16
16
{
17
+ if (!class_exists (\Http \Adapter \React \Client::class)) {
18
+ $ this ->markTestSkipped ('React adapter is not installed ' );
19
+ }
20
+
17
21
$ factory = new ReactFactory ($ this ->getMockBuilder (MessageFactory::class)->getMock ());
18
22
$ client = $ factory ->createClient ();
19
23
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ class SocketFactoryTest extends TestCase
14
14
{
15
15
public function testCreateClient ()
16
16
{
17
+ if (!class_exists (\Http \Client \Socket \Client::class)) {
18
+ $ this ->markTestSkipped ('Socket client is not installed ' );
19
+ }
20
+
17
21
$ factory = new SocketFactory ($ this ->getMockBuilder (MessageFactory::class)->getMock ());
18
22
$ client = $ factory ->createClient ();
19
23
Original file line number Diff line number Diff line change 38
38
"guzzlehttp/psr7" : " ^1.0" ,
39
39
"matthiasnoback/symfony-dependency-injection-test" : " ^1.1 || ^2.3" ,
40
40
"nyholm/nsa" : " ^1.1" ,
41
- "php-http/buzz-adapter" : " ^0.3" ,
42
- "php-http/curl-client" : " ^1.0" ,
43
- "php-http/guzzle6-adapter" : " ^1.1.1" ,
44
- "php-http/mock-client" : " ^1.0" ,
41
+ "php-http/guzzle6-adapter" : " ^1.1.1 || ^2.0.1" ,
45
42
"php-http/promise" : " ^1.0" ,
46
- "php-http/react-adapter" : " ^0.2.1" ,
47
- "php-http/socket-client" : " ^1.0" ,
43
+ "php-http/mock-client" : " ^1.2" ,
48
44
"polishsymfonycommunity/symfony-mocker-container" : " ^1.0" ,
49
45
"symfony/browser-kit" : " ^2.8.49 || ^3.0.9 || ^3.1.10 || ^3.2.14 || ^3.3.18 || ^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1" ,
50
46
"symfony/cache" : " ^3.1.10 || ^3.2.14 || ^3.3.18 || ^3.4.20 || ^4.0.15 || ^4.1.9 || ^4.2.1" ,
You can’t perform that action at this time.
0 commit comments