summaryrefslogtreecommitdiffstats
path: root/55.patch
diff options
context:
space:
mode:
Diffstat (limited to '55.patch')
-rw-r--r--55.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/55.patch b/55.patch
new file mode 100644
index 0000000..4e8f03c
--- /dev/null
+++ b/55.patch
@@ -0,0 +1,64 @@
+From 0bb83c7e86e37667a643d581c2260e6a94b7585d Mon Sep 17 00:00:00 2001
+From: FlyingHail <flyinghail@msn.com>
+Date: Mon, 12 Nov 2018 17:00:19 +0800
+Subject: [PATCH] Fix: skip PSR-18 tests when PHP < 7
+
+---
+ tests/PsrHttpClientClientExceptionInterface.phpt | 2 +-
+ tests/PsrHttpClientClientInterface.phpt | 2 +-
+ tests/PsrHttpClientNetworkExceptionInterface.phpt | 2 +-
+ tests/PsrHttpClientRequestExceptionInterface.phpt | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/PsrHttpClientClientExceptionInterface.phpt b/tests/PsrHttpClientClientExceptionInterface.phpt
+index a02da4e..b270240 100644
+--- a/tests/PsrHttpClientClientExceptionInterface.phpt
++++ b/tests/PsrHttpClientClientExceptionInterface.phpt
+@@ -1,7 +1,7 @@
+ --TEST--
+ Psr\Http\Client\ClientExceptionInterface
+ --SKIPIF--
+-<?php if( !extension_loaded('psr') ) die('skip '); ?>
++<?php if( !extension_loaded('psr') || PHP_MAJOR_VERSION < 7 ) die('skip '); ?>
+ --FILE--
+ <?php
+ use Psr\Http\Client\ClientExceptionInterface;
+diff --git a/tests/PsrHttpClientClientInterface.phpt b/tests/PsrHttpClientClientInterface.phpt
+index 6aebb2a..ae12835 100644
+--- a/tests/PsrHttpClientClientInterface.phpt
++++ b/tests/PsrHttpClientClientInterface.phpt
+@@ -1,7 +1,7 @@
+ --TEST--
+ Psr\Http\Client\ClientInterface
+ --SKIPIF--
+-<?php if( !extension_loaded('psr') ) die('skip '); ?>
++<?php if( !extension_loaded('psr') || PHP_MAJOR_VERSION < 7 ) die('skip '); ?>
+ --FILE--
+ <?php
+ include __DIR__ . '/SampleMessage.inc';
+diff --git a/tests/PsrHttpClientNetworkExceptionInterface.phpt b/tests/PsrHttpClientNetworkExceptionInterface.phpt
+index 8ef9619..83803d2 100644
+--- a/tests/PsrHttpClientNetworkExceptionInterface.phpt
++++ b/tests/PsrHttpClientNetworkExceptionInterface.phpt
+@@ -1,7 +1,7 @@
+ --TEST--
+ Psr\Http\Client\NetworkExceptionInterface
+ --SKIPIF--
+-<?php if( !extension_loaded('psr') ) die('skip '); ?>
++<?php if( !extension_loaded('psr') || PHP_MAJOR_VERSION < 7 ) die('skip '); ?>
+ --FILE--
+ <?php
+ use Psr\Http\Message\RequestInterface;
+diff --git a/tests/PsrHttpClientRequestExceptionInterface.phpt b/tests/PsrHttpClientRequestExceptionInterface.phpt
+index a522466..f643b89 100644
+--- a/tests/PsrHttpClientRequestExceptionInterface.phpt
++++ b/tests/PsrHttpClientRequestExceptionInterface.phpt
+@@ -1,7 +1,7 @@
+ --TEST--
+ Psr\Http\Client\RequestExceptionInterface
+ --SKIPIF--
+-<?php if( !extension_loaded('psr') ) die('skip '); ?>
++<?php if( !extension_loaded('psr') || PHP_MAJOR_VERSION < 7 ) die('skip '); ?>
+ --FILE--
+ <?php
+ use Psr\Http\Message\RequestInterface;