Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 622 Bytes
#!/usr/bin/env php
<?php
function phpunit_autoload($class = NULL)
{
static $classes = NULL;
if ($classes === NULL) {
$classes = array(
___CLASSLIST___
);
}
if ($class === NULL) {
$result = array(__FILE__);
foreach ($classes as $file) {
$result[] = 'phar://___PHAR___' . $file;
}
return $result;
}
$class = strtolower($class);
if (isset($classes[$class])) {
require 'phar://___PHAR___' . $classes[$class];
}
}
spl_autoload_register('phpunit_autoload');
PHPUnit_TextUI_Command::main();
__HALT_COMPILER();
Something went wrong with that request. Please try again.