Skip to content

Commit a972b59

Browse files
1 parent b1459cb commit a972b59

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

build.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,12 @@
377377

378378
<exec executable="phpab">
379379
<arg value="--all" />
380+
<arg value="--static" />
380381
<arg value="--phar" />
381382
<arg value="--output" />
382383
<arg path="${basedir}/build/phpunit-${_version}.phar" />
383384
<arg value="--template" />
384385
<arg path="${basedir}/build/phar-autoload.php.in" />
385-
<arg value="--indent" />
386-
<arg value=" " />
387386
<arg path="${basedir}/build/phar" />
388387
</exec>
389388

build/phar-autoload.php.in

+1-18
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,7 @@ if (__FILE__ == realpath($GLOBALS['_SERVER']['SCRIPT_NAME'])) {
1212
define('__PHPUNIT_PHAR__', str_replace(DIRECTORY_SEPARATOR, '/', $phar));
1313
define('__PHPUNIT_PHAR_ROOT__', 'phar://___PHAR___');
1414

15-
spl_autoload_register(
16-
function ($class)
17-
{
18-
static $classes = NULL;
19-
20-
if ($classes === NULL) {
21-
$classes = array(
22-
___CLASSLIST___
23-
);
24-
}
25-
26-
$class = strtolower($class);
27-
28-
if (isset($classes[$class])) {
29-
require __PHPUNIT_PHAR_ROOT__ . $classes[$class];
30-
}
31-
}
32-
);
15+
___FILELIST___
3316

3417
Phar::mapPhar('___PHAR___');
3518

0 commit comments

Comments
 (0)