1
0
Fork 0

Fix putenv to avoid leaving the environment in a dirty state

pull/8575/head
Jordi Boggiano 2020-01-28 14:22:11 +01:00
parent 94dce37424
commit fb93036a70
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 3 deletions

View File

@ -288,7 +288,7 @@ class EventDispatcherTest extends TestCase
rmdir(__DIR__ . sprintf('%svendor', DIRECTORY_SEPARATOR)); rmdir(__DIR__ . sprintf('%svendor', DIRECTORY_SEPARATOR));
chdir($currentDirectoryBkp); chdir($currentDirectoryBkp);
putenv('COMPOSER_BIN_DIR=' . $composerBinDirBkp); putenv('COMPOSER_BIN_DIR' . ($composerBinDirBkp === false ? '' : '=' . $composerBinDirBkp));
} }
static public function createsVendorBinFolderChecksEnvDoesNotContainsBin() static public function createsVendorBinFolderChecksEnvDoesNotContainsBin()