Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2de9c857a |
3 changed files with 14 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
/php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz
|
||||
/php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# remirepo/fedora spec file for php-phpspec-prophecy-phpunit
|
||||
#
|
||||
# Copyright (c) 2020 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# Copyright (c) 2020-2023 Remi Collet
|
||||
# License: CC-BY-SA-4.0
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
|
|
@ -9,14 +9,14 @@
|
|||
|
||||
%bcond_without tests
|
||||
|
||||
%global gh_commit 2d7a9df55f257d2cba9b1d0c0963a54960657177
|
||||
%global gh_commit 9f26c224a2fa335f33e6666cc078fbf388255e87
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner phpspec
|
||||
%global gh_project prophecy-phpunit
|
||||
|
||||
Name: php-%{gh_owner}-%{gh_project}
|
||||
Version: 2.0.1
|
||||
Release: 5%{?dist}
|
||||
Version: 2.0.2
|
||||
Release: 1%{?dist}
|
||||
Summary: Integrating the Prophecy mocking library in PHPUnit test cases
|
||||
|
||||
License: MIT
|
||||
|
|
@ -82,15 +82,18 @@ phpab --output vendor/autoload.php fixtures tests
|
|||
|
||||
cat << 'EOF' | tee -a vendor/autoload.php
|
||||
require_once '%{buildroot}%{_datadir}/php/Prophecy/PhpUnit/autoload.php';
|
||||
require_once '%{_datadir}/php/PHPUnit9/autoload.php';
|
||||
EOF
|
||||
|
||||
: check autoloader
|
||||
php %{buildroot}%{_datadir}/php/Prophecy/PhpUnit/autoload.php
|
||||
|
||||
: Fix expecteed path
|
||||
sed -e 's:src/::' -i tests/MockFailure.phpt
|
||||
|
||||
: upstream test suite
|
||||
ret=0
|
||||
for cmd in php php73 php74 php80; do
|
||||
for cmd in php php80 php81 php82; do
|
||||
if which $cmd; then
|
||||
$cmd -d auto_prepend_file=vendor/autoload.php \
|
||||
%{_bindir}/phpunit9 || ret=1
|
||||
|
|
@ -110,6 +113,9 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Apr 19 2023 Remi Collet <remi@remirepo.net> - 2.0.2-1
|
||||
- update to 2.0.2
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-phpspec-prophecy-phpunit-2.0.1-2d7a9df.tgz) = 71cf6cfcb20d2371ca98f35add668503fa46fd508864976977834ef91ff52e4389a3fe9c5f0e8a07e5cbe3bf49fffeb7de16ebcf757077a9358d96e66bafe3c7
|
||||
SHA512 (php-phpspec-prophecy-phpunit-2.0.2-9f26c22.tgz) = 4942d0f77abb7e21616847e62216427aaf77c2217be60f9a225a560a3f8b2c1fb01014006c8d0925780de1497ff9ed0933a83e955e543954c693b215557da013
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue