From 03018d3c5921449a0479469d1c41bbcf7529a5bf Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 23 Feb 2017 09:49:56 +0100 Subject: php-phpunit-PHP-CodeCoverage: 4.0.6 --- composer-dev.json | 2 +- php-phpunit-PHP-CodeCoverage-dev.spec | 17 +- php-phpunit-PHP-CodeCoverage-upstream.patch | 367 ---------------------------- 3 files changed, 10 insertions(+), 376 deletions(-) delete mode 100644 php-phpunit-PHP-CodeCoverage-upstream.patch diff --git a/composer-dev.json b/composer-dev.json index 2dc52d8..6b27a3d 100644 --- a/composer-dev.json +++ b/composer-dev.json @@ -23,7 +23,7 @@ "require": { "php": "^5.6 || ^7.0", "phpunit/php-file-iterator": "~1.3", - "phpunit/php-token-stream": "^1.4.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", "phpunit/php-text-template": "~1.2", "sebastian/code-unit-reverse-lookup": "~1.0", "sebastian/environment": "^1.3.2 || ^2.0", diff --git a/php-phpunit-PHP-CodeCoverage-dev.spec b/php-phpunit-PHP-CodeCoverage-dev.spec index 6770582..414544c 100644 --- a/php-phpunit-PHP-CodeCoverage-dev.spec +++ b/php-phpunit-PHP-CodeCoverage-dev.spec @@ -8,7 +8,7 @@ # %global bootstrap 0 -%global gh_commit c19cfc7cbb0e9338d8c469c7eedecc2a428b0971 +%global gh_commit ca060f645beeddebedb1885c97bf163e93264c35 #global gh_date 20150924 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann @@ -17,8 +17,8 @@ %global pear_name PHP_CodeCoverage %global pear_channel pear.phpunit.de %global major 4.0 -%global minor 5 -%global specrel 2 +%global minor 6 +%global specrel 1 %if %{bootstrap} %global with_tests 0%{?_with_tests:1} %else @@ -35,8 +35,6 @@ License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz -Patch0: %{name}-upstream.patch - BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php(language) >= 5.6 @@ -54,7 +52,7 @@ BuildRequires: php-pecl-xdebug >= 2.4.0 # From composer.json, require # "php": "^5.6 || ^7.0", # "phpunit/php-file-iterator": "~1.3", -# "phpunit/php-token-stream": "^1.4.2", +# "phpunit/php-token-stream": "^1.4.2 || ^2.0", # "phpunit/php-text-template": "~1.2", # "sebastian/code-unit-reverse-lookup": "~1.0", # "sebastian/environment": "^1.3.2 || ^2.0", @@ -63,7 +61,7 @@ Requires: php(language) >= 5.6 Requires: php-composer(phpunit/php-file-iterator) >= 1.3 Requires: php-composer(phpunit/php-file-iterator) < 2 Requires: php-composer(phpunit/php-token-stream) >= 1.4.2 -Requires: php-composer(phpunit/php-token-stream) < 2 +Requires: php-composer(phpunit/php-token-stream) < 3 Requires: php-composer(phpunit/php-text-template) >= 1.2 Requires: php-composer(phpunit/php-text-template) < 2 Requires: php-composer(sebastian/code-unit-reverse-lookup) >= 1 @@ -100,7 +98,6 @@ for PHP code coverage information. %prep %setup -q -n %{gh_project}-%{gh_commit} -%patch0 -p1 %build @@ -187,6 +184,10 @@ fi %changelog +* Thu Feb 23 2017 Remi Collet - 4.0.6-1 +- Update to 4.0.6 +- drop patch merged upstream + * Sun Jan 22 2017 Remi Collet - 4.0.5-2 - Update to 4.0.5 - add upstream patch for test suite to fix diff --git a/php-phpunit-PHP-CodeCoverage-upstream.patch b/php-phpunit-PHP-CodeCoverage-upstream.patch deleted file mode 100644 index e35dc30..0000000 --- a/php-phpunit-PHP-CodeCoverage-upstream.patch +++ /dev/null @@ -1,367 +0,0 @@ -From 9b8320af4f14eb187a4bde8d2652bc4a7a034a02 Mon Sep 17 00:00:00 2001 -From: Sebastian Bergmann -Date: Sun, 22 Jan 2017 09:35:22 +0100 -Subject: [PATCH] Closes #495 - ---- - .../dashboard.html | 2 +- - .../CoverageForFileWithIgnoredLines/index.html | 44 +++------ - .../source_with_ignore.php.html | 109 ++++++--------------- - .../XML/CoverageForFileWithIgnoredLines/index.xml | 4 +- - .../source_with_ignore.php.xml | 2 +- - tests/_files/ignored-lines-clover.xml | 4 +- - tests/_files/ignored-lines-text.txt | 12 +-- - 7 files changed, 56 insertions(+), 121 deletions(-) - -diff --git a/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html b/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html -index a0b1d94..2db00c7 100644 ---- a/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html -+++ b/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html -@@ -251,7 +251,7 @@ - chart.yAxis.axisLabel('Method Complexity'); - - d3.select('#methodComplexity svg') -- .datum(getComplexityData([[66.666666666667,1,"CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous<\/a>"],[100,1,"CoveredClassWithAnonymousFunctionInStaticMethod::anonymous function<\/a>"]], 'Method Complexity')) -+ .datum(getComplexityData([[66.666666666666657,1,"CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous<\/a>"],[100,1,"CoveredClassWithAnonymousFunctionInStaticMethod::anonymous function<\/a>"]], 'Method Complexity')) - .transition() - .duration(500) - .call(chart); -diff --git a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/index.html b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/index.html -index 247ee0c..a9be55d 100644 ---- a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/index.html -+++ b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/index.html -@@ -50,22 +50,12 @@ - -
50.00%
-
1 / 2
--
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
--
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
2 / 2
-+ -+
n/a
-+
0 / 0
-+ -+
n/a
-+
0 / 0
- - - -@@ -78,22 +68,12 @@ - -
50.00%
-
1 / 2
--
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
--
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
2 / 2
-+ -+
n/a
-+
0 / 0
-+ -+
n/a
-+
0 / 0
- - - -diff --git a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html -index be814c1..dafd7fa 100644 ---- a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html -+++ b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html -@@ -2,7 +2,7 @@ - - - -- Code Coverage for %s/source_with_ignore.php -+ Code Coverage for %s - - - -@@ -41,24 +41,14 @@ - - - -- Total --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
2 / 2
--
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
-- CRAP -+ Total -+ -+
n/a
-+
0 / 0
-+ -+
n/a
-+
0 / 0
-+ CRAP -
-
- 50.00% covered (danger) -@@ -80,26 +70,16 @@ -
100.00%
-
1 / 1
- 0 --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
-+ -+
n/a
-+
0 / 0
- - - -- Foo --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
1 / 1
-+ Foo -+ -+
n/a
-+
0 / 0
-
-
- 100.00% covered (success) -@@ -109,14 +89,9 @@ -
100.00%
-
1 / 1
- 1 --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
-+ -+
n/a
-+
0 / 0
- - - -@@ -130,26 +105,16 @@ -
100.00%
-
1 / 1
- 1 --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
-+ -+
n/a
-+
0 / 0
- - - -- Bar --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
1 / 1
-+ Bar -+ -+
n/a
-+
0 / 0
-
-
- 100.00% covered (success) -@@ -159,14 +124,9 @@ -
100.00%
-
1 / 1
- 1 --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
-+ -+
n/a
-+
0 / 0
- - - -@@ -180,14 +140,9 @@ -
100.00%
-
1 / 1
- 1 --
--
-- 100.00% covered (success) --
--
-- --
100.00%
--
0 / 0
-+ -+
n/a
-+
0 / 0
- - - -diff --git a/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/index.xml b/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/index.xml -index 35c0745..436081a 100644 ---- a/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/index.xml -+++ b/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/index.xml -@@ -9,7 +9,7 @@ - - - -- -+ - - - -@@ -17,7 +17,7 @@ - - - -- -+ - - - -diff --git a/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/source_with_ignore.php.xml b/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/source_with_ignore.php.xml -index 509990f..f5eec7d 100644 ---- a/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/source_with_ignore.php.xml -+++ b/tests/_files/Report/XML/CoverageForFileWithIgnoredLines/source_with_ignore.php.xml -@@ -5,7 +5,7 @@ - - - -- -+ - - - -diff --git a/tests/_files/ignored-lines-clover.xml b/tests/_files/ignored-lines-clover.xml -index 81a9aaa..a35cc4b 100644 ---- a/tests/_files/ignored-lines-clover.xml -+++ b/tests/_files/ignored-lines-clover.xml -@@ -10,8 +10,8 @@ - - - -- -+ - -- -+ - - -diff --git a/tests/_files/ignored-lines-text.txt b/tests/_files/ignored-lines-text.txt -index 4283038..6e8e149 100644 ---- a/tests/_files/ignored-lines-text.txt -+++ b/tests/_files/ignored-lines-text.txt -@@ -1,10 +1,10 @@ - - --Code Coverage Report: -+Code Coverage Report:%w - %s -- -- Summary: -- Classes: 100.00% (2/2) -- Methods: (0/0) -- Lines: 50.00% (1/2) -+%w -+ Summary:%w -+ Classes: (0/0) -+ Methods: (0/0) -+ Lines: 50.00% (1/2) - -From f12ad0185b5f06ef9871af867f14d936278e1ce0 Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Sun, 22 Jan 2017 10:07:33 +0100 -Subject: [PATCH] force serialize_precision to ensure test pass with 5.6, 7.0 - and 7.1 - ---- - phpunit.xml | 4 ++++ - .../Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html | 2 +- - 2 files changed, 5 insertions(+), 1 deletion(-) - -diff --git a/phpunit.xml b/phpunit.xml -index c8f28de..55822f0 100644 ---- a/phpunit.xml -+++ b/phpunit.xml -@@ -13,5 +13,9 @@ - src - - -+ -+ -+ -+ - - -diff --git a/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html b/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html -index 2db00c7..a0b1d94 100644 ---- a/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html -+++ b/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html -@@ -251,7 +251,7 @@ - chart.yAxis.axisLabel('Method Complexity'); - - d3.select('#methodComplexity svg') -- .datum(getComplexityData([[66.666666666666657,1,"
CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous<\/a>"],[100,1,"CoveredClassWithAnonymousFunctionInStaticMethod::anonymous function<\/a>"]], 'Method Complexity')) -+ .datum(getComplexityData([[66.666666666667,1,"CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous<\/a>"],[100,1,"CoveredClassWithAnonymousFunctionInStaticMethod::anonymous function<\/a>"]], 'Method Complexity')) - .transition() - .duration(500) - .call(chart); -- cgit