diff options
author | Remi Collet <remi@remirepo.net> | 2018-02-02 10:59:18 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-02-02 10:59:18 +0100 |
commit | dfb8caa78b5d7ad57309d9fe1b22e4376423ea42 (patch) | |
tree | 1fab3816103b7da41f2151b7a20414d8dee5c957 | |
parent | 1509136d5ad67adf5595a6af6dcb3737a8a6f01c (diff) |
use full path instead of relying on include_path
ignore 1 failed, reported upstream as https://github.com/sebastianbergmann/phpunit-mock-objects/issues/401
-rw-r--r-- | php-phpunit-mock-objects6.spec | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/php-phpunit-mock-objects6.spec b/php-phpunit-mock-objects6.spec index b9ea0c2..5fdf888 100644 --- a/php-phpunit-mock-objects6.spec +++ b/php-phpunit-mock-objects6.spec @@ -110,10 +110,11 @@ phpab \ src cat <<EOF | tee -a src/autoload.php -/* dependencies */ -require_once 'Text/Template/Autoload.php'; -require_once 'Doctrine/Instantiator/autoload.php'; -require_once 'SebastianBergmann/Exporter3/autoload.php'; +\Fedora\Autoloader\Dependencies::required([ + '%{php_home}/Text/Template/Autoload.php', + '%{php_home}/Doctrine/Instantiator/autoload.php', + '%{php_home}/SebastianBergmann/Exporter3/autoload.php', +]); EOF @@ -134,14 +135,13 @@ cat << 'EOF' | tee -a vendor/autoload.php require_once '%{buildroot}%{php_home}/%{ns_vendor}/%{ns_top}/%{ns_project}%{ver_major}/autoload.php'; EOF -# ignore as failing upstream in travis -rm tests/Generator/return_type_declarations_final.phpt - ret=0 -for cmd in php php70 php71 php72; do +for cmd in php php71 php72; do if which $cmd; then $cmd -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ - %{_bindir}/phpunit6 --no-coverage || ret=1 + %{_bindir}/phpunit7 \ + --filter '^((?!(testVerificationOfMethodNameFailsWithWrongParameters)).)*$' \ + --no-coverage || ret=1 fi done exit $ret @@ -166,6 +166,9 @@ exit $ret - raise dependency on PHP 7.1 - use range dependencies on F27+ - use phpunit7 +- use full path instead of relying on include_path +- ignore 1 failed, reported upstream as + https://github.com/sebastianbergmann/phpunit-mock-objects/issues/401 - boostrap build * Sun Jan 7 2018 Remi Collet <remi@remirepo.net> - 5.0.6-1 |