You are here

bootstrap.php in X Autoload 7.4

Same filename and directory in other branches
  1. 7.5 tests/bootstrap.php
  2. 7.3 tests/bootstrap.php

File

tests/bootstrap.php
View source
<?php

use Drupal\xautoload\Discovery\ClassMapGenerator;
require_once dirname(__DIR__) . '/xautoload.early.lib.inc';
_xautoload_register();
xautoload()->finder
  ->addPsr4('Drupal\\xautoload\\Tests\\', __DIR__ . '/lib/');

// Use a non-cached class map generator.
xautoload()
  ->getServiceContainer()
  ->set('classMapGenerator', new ClassMapGenerator());