diff options
author | Remi Collet <remi@remirepo.net> | 2021-03-18 16:05:51 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-03-18 16:05:51 +0100 |
commit | a97bc4fd81c5572a60a4f7f57481effdcade31e2 (patch) | |
tree | 39d56dbf4e5cfc81e5348b8c9b53cb5fb38d2f07 /php-phpunit-php-token-stream2.spec | |
parent | eb722244f708ca8149cb2d954779fcc4a8c88c28 (diff) |
switch back to phpunit
Diffstat (limited to 'php-phpunit-php-token-stream2.spec')
-rw-r--r-- | php-phpunit-php-token-stream2.spec | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/php-phpunit-php-token-stream2.spec b/php-phpunit-php-token-stream2.spec index 0d9ce34..593762d 100644 --- a/php-phpunit-php-token-stream2.spec +++ b/php-phpunit-php-token-stream2.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-phpunit-php-token-stream2 # -# Copyright (c) 2010-2015 Christof Damian, Remi Collet +# Copyright (c) 2010-2021 Christof Damian, Remi Collet # # License: MIT # http://opensource.org/licenses/MIT @@ -27,10 +27,9 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Version: 2.0.2 -Release: 1%{?dist} +Release: 8%{?dist} Summary: Wrapper around PHP tokenizer extension -Group: Development/Libraries License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz @@ -42,7 +41,7 @@ BuildRequires: php(language) >= 7.0 BuildRequires: php-tokenizer # from composer.json, "require-dev": { # "phpunit/phpunit": "^6.2.4" -BuildRequires: phpunit6 >= 6.2.4 +BuildRequires: phpunit BuildRequires: php-pcre BuildRequires: php-spl %endif @@ -70,6 +69,16 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} +cat << 'EOF' | tee -a src/Token.php + +class PHP_Token_NAME_QUALIFIED extends PHP_Token +{ +} + +class PHP_Token_NAME_FULLY_QUALIFIED extends PHP_Token +{ +} +EOF %build # Generate the Autoloader @@ -88,10 +97,10 @@ touch vendor/autoload.php : Run upstream test suite ret=0 -for cmd in php php70 php71 php72; do +for cmd in php php72 php73 php74 php80; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ - %{_bindir}/phpunit6 --verbose || ret=1 + %{_bindir}/phpunit --verbose || ret=1 fi done exit $ret @@ -110,6 +119,10 @@ exit $ret %changelog +* Thu Mar 18 2021 Remi Collet <remi@remirepo.net> - 2.0.2-8 +- add missing token from PHP 8 +- switch back to phpunit + * Tue Nov 28 2017 Remi Collet <remi@remirepo.net> - 2.0.2-1 - Update to 2.0.2 |