From 3b6ac469b883cc70e187250e1027215f8e554362 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 3 Mar 2022 14:00:39 +0100 Subject: update to 1.4.1 --- php-doctrine-instantiator.spec | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'php-doctrine-instantiator.spec') diff --git a/php-doctrine-instantiator.spec b/php-doctrine-instantiator.spec index cb8816c..7768e84 100644 --- a/php-doctrine-instantiator.spec +++ b/php-doctrine-instantiator.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-doctrine-instantiator # -# Copyright (c) 2014-2020 Remi Collet +# Copyright (c) 2014-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -9,7 +9,7 @@ # bootstrap needed when rebuilding PHPUnit for new major version %global bootstrap 0 -%global gh_commit d56bf6102915de5702778fe20f2de3b2fe570b5b +%global gh_commit 10dcfce151b967d20fde1b34ae6640712c3891bc %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner doctrine %global gh_project instantiator @@ -21,7 +21,7 @@ %endif Name: php-doctrine-instantiator -Version: 1.4.0 +Version: 1.4.1 Release: 1%{?dist} Summary: Instantiate objects in PHP without invoking their constructors @@ -38,11 +38,7 @@ BuildRequires: php-phar BuildRequires: php-pdo BuildRequires: php-reflection BuildRequires: php-spl -%if 0%{?fedora} >=31 || 0%{?rhel} >= 9 %global phpunit %{_bindir}/phpunit9 -%else -%global phpunit %{_bindir}/phpunit8 -%endif BuildRequires: %{phpunit} %endif @@ -92,14 +88,17 @@ mkdir vendor tests cat << 'EOF' | tee -a vendor/autoload.php require "%{buildroot}%{_datadir}/php/Doctrine/Instantiator/autoload.php"; +Fedora\Autoloader\Autoload::addPsr0('DoctrineTest\\InstantiatorPerformance\\', dirname(__DIR__).'/tests'); +Fedora\Autoloader\Autoload::addPsr0('DoctrineTest\\InstantiatorTest\\', dirname(__DIR__).'/tests'); +Fedora\Autoloader\Autoload::addPsr0('DoctrineTest\\InstantiatorTestAsset\\', dirname(__DIR__).'/tests'); EOF : Run test suite ret=0 -for cmdarg in "php %{phpunit}" "php72 %{_bindir}/phpunit8" php73 php74 php80; do +for cmdarg in "php %{phpunit}" php74 php80 php81; do if which $cmdarg; then set $cmdarg - $1 -d include_path=".:%{buildroot}%{_datadir}/php:%{_datadir}/php" \ + $1 -d auto_prepend_file=vendor/autoload.php \ ${2:-%{_bindir}/phpunit9} \ --verbose || ret=1 fi @@ -120,6 +119,9 @@ exit $ret %changelog +* Thu Mar 3 2022 Remi Collet - 1.4.1-1 +- update to 1.4.1 + * Thu Nov 12 2020 Remi Collet - 1.4.0-1 - update to 1.4.0 (no change) - switch to phpunit9 -- cgit