Fix phpunit workaround syntax
parent
7d1ca1f56d
commit
c1c6698799
|
@ -267,8 +267,7 @@ class BinaryInstaller
|
||||||
}
|
}
|
||||||
// Add workaround for PHPUnit process isolation on PHPUnit 6+
|
// Add workaround for PHPUnit process isolation on PHPUnit 6+
|
||||||
if ($this->filesystem->normalizePath($bin) === $this->filesystem->normalizePath($this->vendorDir.'/phpunit/phpunit/phpunit')) {
|
if ($this->filesystem->normalizePath($bin) === $this->filesystem->normalizePath($this->vendorDir.'/phpunit/phpunit/phpunit')) {
|
||||||
$autoloadPathCode .= '$GLOBALS[\'__PHPUNIT_ISOLATION_EXCLUDE_LIST\'] = [realpath('.$binPathExported.')];'."\n"
|
$autoloadPathCode .= '$GLOBALS[\'__PHPUNIT_ISOLATION_EXCLUDE_LIST\'] = $GLOBALS[\'__PHPUNIT_ISOLATION_BLACKLIST\'] = array(realpath('.$binPathExported.'));'."\n";
|
||||||
.'$GLOBALS[\'__PHPUNIT_ISOLATION_BLACKLIST\'] = [realpath('.$binPathExported.')];'."\n";
|
|
||||||
}
|
}
|
||||||
if (trim($match[0]) !== '<?php') {
|
if (trim($match[0]) !== '<?php') {
|
||||||
$streamHint = ' using a stream wrapper to prevent the shebang from being output on PHP<8'."\n *";
|
$streamHint = ' using a stream wrapper to prevent the shebang from being output on PHP<8'."\n *";
|
||||||
|
|
Loading…
Reference in New Issue