From 3896d16a35e9ca202e1ab7ea82f7c41e2bddf4cb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 3 Jun 2016 08:47:58 +0200 Subject: php-phpunit-PHP-CodeCoverage: 4.0.0, for PHPUnit 5.4 (WIP) --- composer-dev.json | 4 ++-- php-phpunit-PHP-CodeCoverage-dev.spec | 41 +++++++++++++++++++++-------------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/composer-dev.json b/composer-dev.json index 7c94bab..acc645e 100644 --- a/composer-dev.json +++ b/composer-dev.json @@ -30,7 +30,7 @@ "sebastian/version": "~1.0|~2.0" }, "require-dev": { - "phpunit/phpunit": "~5", + "phpunit/phpunit": "^5.4", "ext-xdebug": ">=2.1.4" }, "suggest": { @@ -45,7 +45,7 @@ }, "extra": { "branch-alias": { - "dev-master": "3.3.x-dev" + "dev-master": "4.0.x-dev" } } } diff --git a/php-phpunit-PHP-CodeCoverage-dev.spec b/php-phpunit-PHP-CodeCoverage-dev.spec index 4f537f3..c80ab3d 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 44cd8e3930e431658d1a5de7d282d5cb37837fd5 +%global gh_commit 900370c81280cc0d942ffbc5912d80464eaee7e9 #global gh_date 20150924 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann @@ -16,8 +16,8 @@ %global php_home %{_datadir}/php %global pear_name PHP_CodeCoverage %global pear_channel pear.phpunit.de -%global major 3.3 -%global minor 3 +%global major 4.0 +%global minor 0 %global specrel 1 %if %{bootstrap} %global with_tests %{?_with_tests:1}%{!?_with_tests:0} @@ -41,9 +41,9 @@ BuildRequires: php(language) >= 5.6 BuildRequires: php-theseer-autoload >= 1.19 %if %{with_tests} # From composer.json, "require-dev": { -# "phpunit/phpunit": "~5", +# "phpunit/phpunit": "^5.4", # "ext-xdebug": ">=2.1.4" -BuildRequires: php-composer(phpunit/phpunit) >= 5 +BuildRequires: php-composer(phpunit/phpunit) >= 5.4 BuildRequires: php-composer(sebastian/code-unit-reverse-lookup) >= 1 BuildRequires: php-composer(sebastian/environment) >= 1.3.2 BuildRequires: php-pecl-xdebug >= 2.4.0 @@ -76,7 +76,7 @@ Requires: php-composer(sebastian/version) < 3 # "ext-xmlwriter": "*" Requires: php-dom Requires: php-xmlwriter -# From phpcompatinfo report for version 3.0.0 +# From phpcompatinfo report for version 4.0.0 Requires: php-date Requires: php-json Requires: php-spl @@ -99,10 +99,10 @@ for PHP code coverage information. %build phpab \ - --output src/CodeCoverage/Autoload.php \ + --output src/autoload.php \ src -cat << 'EOF' | tee -a src/CodeCoverage/Autoload.php +cat << 'EOF' | tee -a src/autoload.php // Dependencies require_once 'File/Iterator/Autoload.php'; require_once 'PHP/Token/Stream/Autoload.php'; @@ -115,22 +115,27 @@ EOF %install rm -rf %{buildroot} # Restore PSR-0 tree -mkdir -p %{buildroot}%{php_home} -cp -pr src %{buildroot}%{php_home}/PHP +mkdir -p %{buildroot}%{php_home}/SebastianBergmann +cp -pr src %{buildroot}%{php_home}/SebastianBergmann/CodeCoverage %if %{with_tests} %check -sed -e '/log/d' phpunit.xml.dist >phpunit.xml - if ! php -v | grep Xdebug then EXT="-d zend_extension=xdebug.so" fi +cat << 'EOF' | tee tests/bootstrap.php + - 4.0.0-1 +- Update to 4.0.0 +- namespace changed from PHP to SebastianBergmann +- raise build dependency on phpunit >= 5.4 + * Sat May 28 2016 Remi Collet - 3.3.3-1 - Update to 3.3.3 -- cgit