From c59261bbfcb79867ee437a1547993718acac6c3e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 4 Jul 2015 17:04:20 +0200 Subject: php-phpunit-PHPUnit-MockObject: 2.3.5 --- Autoload.php.in | 24 --------------------- php-phpunit-PHPUnit-MockObject.spec | 43 ++++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 41 deletions(-) delete mode 100644 Autoload.php.in diff --git a/Autoload.php.in b/Autoload.php.in deleted file mode 100644 index 94cfaee..0000000 --- a/Autoload.php.in +++ /dev/null @@ -1,24 +0,0 @@ -= 1.19 +BuildRequires: php-theseer-autoload %if %{with_tests} # From composer.json, "require-dev": { # "phpunit/phpunit": "~4.4" -BuildRequires: php-pear-PHPUnit >= 4.4.0 +BuildRequires: php-composer(phpunit/phpunit) >= 4.4 %endif # From composer.json, "require": { @@ -59,10 +56,11 @@ Requires: php-composer(doctrine/instantiator) < 2 # From composer.json, "suggest": { # "ext-soap": "*" Requires: php-soap -# From phpcompatinfo report for version 2.3.1 +# From phpcompatinfo report for version 2.3.5 Requires: php-pcre Requires: php-reflection Requires: php-spl +Requires: php-composer(sebastian/exporter) Provides: php-composer(phpunit/phpunit-mock-objects) = %{version} @@ -81,9 +79,15 @@ find . -name \*.orig -exec rm {} \; -print %build phpab \ - --output src/Framework/MockObject/Autoload.php \ - --template %{SOURCE1} \ - src + --output src/Framework/MockObject/Autoload.php \ + src/Framework/MockObject + +cat < phpunit.xml -# Generate autoloader for tests +: Generate autoloader for tests phpab --output tests/_fixture/autoload.php tests/_fixture/ -# Fix bootstrap +: Fix bootstrap - vendor/autoload used in tests mkdir vendor -ln -s ../src/Framework/MockObject/Autoload.php vendor/autoload.php +ln -s %{buildroot}%{php_home}/PHPUnit/Framework/MockObject/Autoload.php vendor/autoload.php + cat <>tests/bootstrap.php require __DIR__ . '/_fixture/autoload.php'; EOF -# Run tests -phpunit +: Run tests - set include_path to ensure PHPUnit autoloader use it +%{_bindir}/php -d include_path=.:%{buildroot}%{php_home}:%{php_home} \ +%{_bindir}/phpunit %endif @@ -134,6 +140,9 @@ fi %changelog +* Sat Jul 4 2015 Remi Collet - 2.3.5-1 +- update to 2.3.5 + * Thu Jul 2 2015 Remi Collet - 2.3.4-2 - fix autoloader -- cgit