From c03b335ef5e1b322ffd4adf5917c2e8ef16f292b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 29 Sep 2015 15:35:20 +0200 Subject: php-phpunit-PHPUnit: 5.0.0dev --- phpunit-3.0.0-Autoload.php.in | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 phpunit-3.0.0-Autoload.php.in (limited to 'phpunit-3.0.0-Autoload.php.in') diff --git a/phpunit-3.0.0-Autoload.php.in b/phpunit-3.0.0-Autoload.php.in new file mode 100644 index 0000000..ae42900 --- /dev/null +++ b/phpunit-3.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]; + } + } +); + +/* 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