@@ -34,6 +34,7 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
34
34
35
35
@mkdir ($ PHPUNIT_DIR );
36
36
chdir ($ PHPUNIT_DIR );
37
+ echo getcwd (), "\n" ;
37
38
if (file_exists ("phpunit- $ PHPUNIT_VERSION " )) {
38
39
passthru (sprintf ('\\' === DIRECTORY_SEPARATOR ? '(del /S /F /Q %s & rmdir %1$s) >nul ' : 'rm -rf %s ' , "phpunit- $ PHPUNIT_VERSION " ));
39
40
}
@@ -48,14 +49,14 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
48
49
$ zip ->extractTo (getcwd ());
49
50
$ zip ->close ();
50
51
chdir ("phpunit- $ PHPUNIT_VERSION " );
51
- $ prevRoot = getenv ('COMPOSER_ROOT_VERSION ' );
52
- putenv ("COMPOSER_ROOT_VERSION= $ PHPUNIT_VERSION " );
53
- proc_close (proc_open ("$ COMPOSER remove --no-update " .(getenv ('SYMFONY_PHPUNIT_REMOVE ' ) ?: 'phpspec/prophecy symfony/yaml ' ), array (), $ p ));
52
+ passthru ("pwd && $ COMPOSER remove --no-update " .(getenv ('SYMFONY_PHPUNIT_REMOVE ' ) ?: 'phpspec/prophecy symfony/yaml ' ));
54
53
if (5.1 <= $ PHPUNIT_VERSION && $ PHPUNIT_VERSION < 5.4 ) {
55
54
passthru ("$ COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0 \"" );
56
55
}
57
- proc_close (proc_open ("$ COMPOSER require --no-update symfony/phpunit-bridge \">=3.2@dev \"" , array (), $ p ));
58
- $ exit = proc_close (proc_open ("$ COMPOSER install --no-dev --prefer-dist --no-progress --ansi " , array (), $ p ));
56
+ passthru ("$ COMPOSER require --no-update symfony/phpunit-bridge \">=3.2@dev \"" );
57
+ $ prevRoot = getenv ('COMPOSER_ROOT_VERSION ' );
58
+ putenv ("COMPOSER_ROOT_VERSION= $ PHPUNIT_VERSION " );
59
+ $ exit = proc_close (proc_open ("$ COMPOSER install --no-dev --prefer-dist --no-progress --ansi " , array (), $ p , null , null , array ('bypass_shell ' => true )));
59
60
putenv ('COMPOSER_ROOT_VERSION ' .(false !== $ prevRoot ? '= ' .$ prevRoot : '' ));
60
61
if ($ exit ) {
61
62
exit ($ exit );
0 commit comments