diff options
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]; + } + } +); + |