Copied acceptance tests infrastructures from oC/core

Signed-off-by: Kiran Parajuli <kiranparajuli589@gmail.com>
This commit is contained in:
Kiran Parajuli
2022-12-21 17:22:22 +05:45
committed by Phil Davis
parent b84f1f2048
commit 7d152e2ad1
61 changed files with 39555 additions and 28 deletions

View File

@@ -20,18 +20,14 @@
*
*/
$pathToCore = \getenv('PATH_TO_CORE');
if ($pathToCore === false) {
$pathToCore = "../core";
}
use Composer\Autoload\ClassLoader;
require_once $pathToCore . '/tests/acceptance/features/bootstrap/bootstrap.php';
$classLoader = new \Composer\Autoload\ClassLoader();
$classLoader = new ClassLoader();
$classLoader->addPsr4(
"",
$pathToCore . "/tests/acceptance/features/bootstrap",
__DIR__ . "/../../../tests/acceptance/features/bootstrap",
true
);
$classLoader->addPsr4("TestHelpers\\", __DIR__ . "/../../../TestHelpers", true);
$classLoader->register();