25 lines
631 B
PHP
25 lines
631 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/**
|
|
* Proxy PHP file generated by Composer
|
|
*
|
|
* This file includes the referenced bin path (../phpunit/phpunit/phpunit) using eval to remove the shebang if present
|
|
*
|
|
* @generated
|
|
*/
|
|
|
|
$binPath = realpath(__DIR__ . "/" . '../phpunit/phpunit/phpunit');
|
|
$contents = file_get_contents($binPath);
|
|
$contents = preg_replace('{^#!/.+\r?\n<\?(php)?}', '', $contents, 1, $replaced);
|
|
if ($replaced) {
|
|
$contents = strtr($contents, array(
|
|
'__FILE__' => var_export($binPath, true),
|
|
'__DIR__' => var_export(dirname($binPath), true),
|
|
));
|
|
|
|
eval($contents);
|
|
exit(0);
|
|
}
|
|
include $binPath;
|