From 813a0a3ebed2ebaddb84136714e966f6bfb16e59 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 2 Jul 2015 09:08:44 +0200 Subject: php-phpunit-PHPUnit-MockObject: fix autoloader --- Autoload.php.in | 2 +- php-phpunit-PHPUnit-MockObject.spec | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Autoload.php.in b/Autoload.php.in index e79223b..94cfaee 100644 --- a/Autoload.php.in +++ b/Autoload.php.in @@ -12,7 +12,7 @@ spl_autoload_register( ___CLASSLIST___ ); - $path = dirname(dirname(dirname(__FILE__))); + $path = __DIR__; } $cn = strtolower($class); diff --git a/php-phpunit-PHPUnit-MockObject.spec b/php-phpunit-PHPUnit-MockObject.spec index cd5a804..1378483 100644 --- a/php-phpunit-PHPUnit-MockObject.spec +++ b/php-phpunit-PHPUnit-MockObject.spec @@ -22,7 +22,7 @@ Name: php-phpunit-PHPUnit-MockObject Version: 2.3.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Mock Object library for PHPUnit Group: Development/Libraries @@ -40,7 +40,7 @@ Patch0: %{gh_project}-rpm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: %{_bindir}/phpab +BuildRequires: php-theseer-autoload >= 1.19 %if %{with_tests} # From composer.json, "require-dev": { # "phpunit/phpunit": "~4.4" @@ -134,6 +134,9 @@ fi %changelog +* Thu Jul 2 2015 Remi Collet - 2.3.4-2 +- fix autoloader + * Thu Jun 11 2015 Remi Collet - 2.3.4-1 - update to 2.3.4 -- cgit