diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-04-30 16:12:48 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-04-30 16:12:48 +0200 |
commit | c42c0417f27a31e04b63a0e6081567939f4e87d8 (patch) | |
tree | 8b740fdd20fb4ee3d58a09be50ffe031a9fa35d0 /autoload.php.in | |
parent | ef196d656cdab3440a76533ebd5833356741c6d5 (diff) |
php-phpunit-phpcov: 2.0.0, sources from github
Diffstat (limited to 'autoload.php.in')
-rw-r--r-- | autoload.php.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/autoload.php.in b/autoload.php.in new file mode 100644 index 0000000..f4358a0 --- /dev/null +++ b/autoload.php.in @@ -0,0 +1,28 @@ +<?php +/* Inspired from autoload from version 1.2.0 */ + +require 'PHPUnit/Autoload.php'; +require 'Symfony/Component/Console/autoloader.php'; +require 'SebastianBergmann/FinderFacade/autoload.php'; +/* +already required in PHPUnit +require 'PHP/CodeCoverage/Autoload.php'; +require 'SebastianBergmann/Diff/autoload.php'; +require 'SebastianBergmann/Version/autoload.php'; +*/ + +spl_autoload_register( + function($class) { + static $classes = null; + if ($classes === null) { + $classes = array( + ___CLASSLIST___ + ); + } + $cn = strtolower($class); + if (isset($classes[$cn])) { + require ___BASEDIR___$classes[$cn]; + } + } +); + |