diff options
author | Remi Collet <remi@remirepo.net> | 2020-01-06 15:32:41 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-01-06 15:32:41 +0100 |
commit | 09e12257f6cc2ddd9ae7b9ec7f586270809893f7 (patch) | |
tree | 5158b62c2df177ac8045e8b4cedce92e0eabae52 | |
parent | 81fa55ad5425681e8d58723052160a50f7d5b1b7 (diff) |
check compat autoloader
-rw-r--r-- | php-laminas-stdlib.spec | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/php-laminas-stdlib.spec b/php-laminas-stdlib.spec index fdf252d..2f65593 100644 --- a/php-laminas-stdlib.spec +++ b/php-laminas-stdlib.spec @@ -130,8 +130,7 @@ require_once '%{buildroot}%{php_home}/%{namespace}/%{library}/autoload.php'; \Fedora\Autoloader\Autoload::addPsr4('%{namespace}Test\\%{library}\\', dirname(__DIR__) . '/test'); EOF -php %{buildroot}%{php_home}/Zend/%{library}/autoload.php - +: upstream test suite ret=0 for cmdarg in "php %{phpunit}" php72 php73 php74; do if which $cmdarg; then @@ -139,6 +138,13 @@ for cmdarg in "php %{phpunit}" php72 php73 php74; do $1 ${2:-%{_bindir}/phpunit7} --verbose || ret=1 fi done + +: check compat autoloader +php -r ' +require "%{buildroot}%{php_home}/Zend/%{library}/autoload.php"; +return (class_exists("\\Zend\\Stdlib\\ConsoleHelper") ? 0 : 1); +' + exit $ret %else : Test suite disabled |