autoload.php 762 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. require_once __DIR__ . '/../../../../app/autoload.php';
  7. $testsBaseDir = dirname(__DIR__);
  8. $integrationTestsDir = realpath("{$testsBaseDir}/../integration/");
  9. $autoloadWrapper = \Magento\Framework\Autoload\AutoloaderRegistry::getAutoloader();
  10. $autoloadWrapper->addPsr4('Magento\\TestFramework\\', "{$testsBaseDir}/framework/Magento/TestFramework/");
  11. $autoloadWrapper->addPsr4('Magento\\TestFramework\\', "{$integrationTestsDir}/framework/Magento/TestFramework/");
  12. $autoloadWrapper->addPsr4('Magento\\', "{$testsBaseDir}/testsuite/Magento/");
  13. // registration of classes under '../_files'
  14. $autoloadWrapper->addPsr4('Magento\\', "{$testsBaseDir}/_files/");