From 81a78ced461608b4cb6f28323bce0d46f7724b91 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Mar 2016 09:35:56 +0100 Subject: php-phpunit-PHPUnit: fix source name --- php-phpunit-PHPUnit-dev.spec | 2 +- phpunit-3.0.0-Autoload.php.in | 66 ------------------------------------------- phpunit-5.0.0-Autoload.php.in | 66 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 67 deletions(-) delete mode 100644 phpunit-3.0.0-Autoload.php.in create mode 100644 phpunit-5.0.0-Autoload.php.in diff --git a/php-phpunit-PHPUnit-dev.spec b/php-phpunit-PHPUnit-dev.spec index 9729cae..1a76c96 100644 --- a/php-phpunit-PHPUnit-dev.spec +++ b/php-phpunit-PHPUnit-dev.spec @@ -31,7 +31,7 @@ URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz # Autoload template, from version 3.7 -Source1: %{gh_project}-3.0.0-Autoload.php.in +Source1: %{gh_project}-5.0.0-Autoload.php.in # Fix command for autoload Patch0: %{gh_project}-rpm.patch diff --git a/phpunit-3.0.0-Autoload.php.in b/phpunit-3.0.0-Autoload.php.in deleted file mode 100644 index fd8d107..0000000 --- a/phpunit-3.0.0-Autoload.php.in +++ /dev/null @@ -1,66 +0,0 @@ -register(); -} - -/* for symfony/yaml */ -$fedoraClassLoader->addPrefix('Symfony\\Component\\', $vendorDir); - -spl_autoload_register( - function ($class) - { - static $classes = NULL; - - if ($classes === NULL) { - $classes = array( - ___CLASSLIST___ - ); - } - - $cn = strtolower($class); - - if (isset($classes[$cn])) { - require __DIR__ . $classes[$cn]; - } - } -); - -/* Required */ -require_once 'File/Iterator/Autoload.php'; -require_once 'PHP/CodeCoverage/Autoload.php'; -require_once 'PHP/Timer/Autoload.php'; -require_once 'PHPUnit/Framework/MockObject/Autoload.php'; -require_once 'Text/Template/Autoload.php'; -require_once 'PHP/Invoker/Autoload.php'; -require_once 'SebastianBergmann/Diff/autoload.php'; -require_once 'SebastianBergmann/Environment/autoload.php'; -require_once 'SebastianBergmann/Exporter/autoload.php'; -require_once 'SebastianBergmann/Version/autoload.php'; -require_once 'SebastianBergmann/Comparator/autoload.php'; -require_once 'SebastianBergmann/GlobalState/autoload.php'; -require_once 'Doctrine/Instantiator/autoload.php'; -require_once 'Prophecy/autoload.php'; -require_once 'SebastianBergmann/ResourceOperations/autoload.php'; -require_once 'DeepCopy/autoload.php'; - -/* Optional */ -foreach(array( - 'PHPUnit/Extensions/Database/Autoload.php', - 'PHPUnit/Extensions/SeleniumCommon/Autoload.php', - 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php', - 'PHPUnit/Extensions/Story/Autoload.php' - ) as $opt) { - if ($fic = stream_resolve_include_path($opt)) { - require_once $fic; - } -} diff --git a/phpunit-5.0.0-Autoload.php.in b/phpunit-5.0.0-Autoload.php.in new file mode 100644 index 0000000..fd8d107 --- /dev/null +++ b/phpunit-5.0.0-Autoload.php.in @@ -0,0 +1,66 @@ +register(); +} + +/* for symfony/yaml */ +$fedoraClassLoader->addPrefix('Symfony\\Component\\', $vendorDir); + +spl_autoload_register( + function ($class) + { + static $classes = NULL; + + if ($classes === NULL) { + $classes = array( + ___CLASSLIST___ + ); + } + + $cn = strtolower($class); + + if (isset($classes[$cn])) { + require __DIR__ . $classes[$cn]; + } + } +); + +/* Required */ +require_once 'File/Iterator/Autoload.php'; +require_once 'PHP/CodeCoverage/Autoload.php'; +require_once 'PHP/Timer/Autoload.php'; +require_once 'PHPUnit/Framework/MockObject/Autoload.php'; +require_once 'Text/Template/Autoload.php'; +require_once 'PHP/Invoker/Autoload.php'; +require_once 'SebastianBergmann/Diff/autoload.php'; +require_once 'SebastianBergmann/Environment/autoload.php'; +require_once 'SebastianBergmann/Exporter/autoload.php'; +require_once 'SebastianBergmann/Version/autoload.php'; +require_once 'SebastianBergmann/Comparator/autoload.php'; +require_once 'SebastianBergmann/GlobalState/autoload.php'; +require_once 'Doctrine/Instantiator/autoload.php'; +require_once 'Prophecy/autoload.php'; +require_once 'SebastianBergmann/ResourceOperations/autoload.php'; +require_once 'DeepCopy/autoload.php'; + +/* Optional */ +foreach(array( + 'PHPUnit/Extensions/Database/Autoload.php', + 'PHPUnit/Extensions/SeleniumCommon/Autoload.php', + 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php', + 'PHPUnit/Extensions/Story/Autoload.php' + ) as $opt) { + if ($fic = stream_resolve_include_path($opt)) { + require_once $fic; + } +} -- cgit