File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,11 @@ require __DIR__.'/src/Symfony/Component/Process/ProcessUtils.php';
22
22
$ PHPUNIT_VERSION = PHP_VERSION_ID >= 70000 ? '5.0 ' : '4.8 ' ;
23
23
$ PHPUNIT_DIR = __DIR__ .'/.phpunit ' ;
24
24
$ PHP = defined ('PHP_BINARY ' ) ? PHP_BINARY : 'php ' ;
25
-
26
- if (!file_exists ($ COMPOSER = __DIR__ .'/composer.phar ' )) {
27
- $ COMPOSER = rtrim ('\\' === DIRECTORY_SEPARATOR ? `where.exe composer.phar ` : (`which composer.phar ` ?: `which composer `));
28
- if (!file_exists ($ COMPOSER )) {
29
- stream_copy_to_stream (
30
- fopen ('https://getcomposer.org/composer.phar ' , 'rb ' ),
31
- fopen ($ COMPOSER = __DIR__ .'/composer.phar ' , 'wb ' )
32
- );
33
- }
34
- }
35
-
36
25
$ PHP = ProcessUtils::escapeArgument ($ PHP );
37
- $ COMPOSER = $ PHP .' ' .ProcessUtils::escapeArgument ($ COMPOSER );
26
+
27
+ $ COMPOSER = file_exists ($ COMPOSER = __DIR__ .'/composer.phar ' ) || ($ COMPOSER = rtrim ('\\' === DIRECTORY_SEPARATOR ? `where.exe composer.phar ` : `which composer.phar `))
28
+ ? $ PHP .' ' .ProcessUtils::escapeArgument ($ COMPOSER )
29
+ : 'composer ' ;
38
30
39
31
if (!file_exists ("$ PHPUNIT_DIR /phpunit- $ PHPUNIT_VERSION /phpunit " ) || md5_file (__FILE__ ) !== @file_get_contents ("$ PHPUNIT_DIR /.md5 " )) {
40
32
// Build a standalone phpunit without symfony/yaml
You can’t perform that action at this time.
0 commit comments