From 2daf958688f6767d1bfd6140bdad6dae6ff96256 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 3 Jun 2015 18:36:56 +0200 Subject: php-phpunit-bytekit: swicth from eZ to Zeta Components --- php-phpunit-bytekit-autoload.patch | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 php-phpunit-bytekit-autoload.patch (limited to 'php-phpunit-bytekit-autoload.patch') diff --git a/php-phpunit-bytekit-autoload.patch b/php-phpunit-bytekit-autoload.patch new file mode 100644 index 0000000..105bbd9 --- /dev/null +++ b/php-phpunit-bytekit-autoload.patch @@ -0,0 +1,41 @@ +diff -up Bytekit/Autoload.php.orig Bytekit/Autoload.php +--- a/Bytekit/Autoload.php 2012-08-27 07:04:42.000000000 +0200 ++++ b/Bytekit/Autoload.php 2015-06-03 18:18:33.706764805 +0200 +@@ -41,16 +41,16 @@ + * @since File available since Release 1.0.0 + */ + +-require_once 'Symfony/Component/Finder/Finder.php'; +-require_once 'Symfony/Component/Finder/Glob.php'; +-require_once 'Symfony/Component/Finder/Iterator/FilterIterator.php'; +-require_once 'Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php'; +-require_once 'Symfony/Component/Finder/Iterator/MultiplePcreFilterIterator.php'; +-require_once 'Symfony/Component/Finder/Iterator/FilenameFilterIterator.php'; +-require_once 'Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php'; +-require_once 'Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php'; +-require_once 'Symfony/Component/Finder/SplFileInfo.php'; +-require_once 'ezc/Base/base.php'; ++$vendorDir = '/usr/share/php'; ++require_once $vendorDir . '/ezc/Base/base.php'; ++require_once $vendorDir . '/Symfony/Component/ClassLoader/UniversalClassLoader.php'; ++use Symfony\Component\ClassLoader\UniversalClassLoader; ++ ++$loader = new UniversalClassLoader(); ++$loader->registerNamespaces(array( ++ 'Symfony\\Component\\Finder' => $vendorDir, ++)); ++$loader->register(); + + spl_autoload_register( + function($class) { +--- a/bytekit.php 2015-06-03 18:26:38.915850268 +0200 ++++ b/bytekit.php 2015-06-03 18:27:45.246135361 +0200 +@@ -46,7 +46,7 @@ + set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path()); + } + +-require_once 'Bytekit/Autoload.php'; ++require_once '/usr/share/php/Bytekit/Autoload.php'; + + $command = new Bytekit_TextUI_Command; + $command->main(); -- cgit