From f1feae7322bee4e523159ac8dc3dcb38a14c1616 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 12 Nov 2018 10:12:31 +0100 Subject: add patch for failed tests --- 55.patch | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-psr.spec | 3 +++ 2 files changed, 67 insertions(+) create mode 100644 55.patch 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 +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-- +- ++ + --FILE-- + ++ + --FILE-- + ++ + --FILE-- + ++ + --FILE-- + = 5.6 BuildRequires: %{?scl_prefix}php-pear @@ -106,6 +108,7 @@ mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS %{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} cd NTS +%patch0 -p1 -b .pr55 # Sanity check, really often broken extver=$(sed -n '/#define PHP_PSR_VERSION/{s/.* "//;s/".*$//;p}' php_psr.h) -- cgit