1
0
Fork 0

Try fixing the build

pull/9662/head
Jordi Boggiano 2021-02-01 13:32:03 +01:00
parent 4ade9bd960
commit 5e956afa2f
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,15 @@ use Composer\Semver\VersionParser;
class InstalledVersionsTest extends TestCase
{
public static function setUpBeforeClass()
{
// disable multiple-ClassLoader-based checks of InstalledVersions by making it seem like no
// class loaders are registered
$prop = new \ReflectionProperty('Composer\Autoload\ClassLoader', 'registeredLoaders');
$prop->setAccessible(true);
$prop->setValue(array());
}
public function setUp()
{
InstalledVersions::reload(require __DIR__.'/Repository/Fixtures/installed.php');