diff --git a/tests/Composer/Test/InstalledVersionsTest.php b/tests/Composer/Test/InstalledVersionsTest.php index c1f4bb122..9070a4d67 100644 --- a/tests/Composer/Test/InstalledVersionsTest.php +++ b/tests/Composer/Test/InstalledVersionsTest.php @@ -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');