summaryrefslogtreecommitdiffstats
path: root/php-laminas-stdlib.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-laminas-stdlib.spec')
-rw-r--r--php-laminas-stdlib.spec10
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