ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
bootstrap.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of Component Installer.
5 *
6 * (c) Rob Loach (http://robloach.net)
7 *
8 * For the full copyright and license information, please view the LICENSE.md
9 * file that was distributed with this source code.
10 */
11
12error_reporting(E_ALL);
13
14// Add the Component Installer test paths.
15$loader = require __DIR__ . '/../src/bootstrap.php';
16$loader->add('ComponentInstaller\Test', __DIR__);
17
18// Allow use of the Composer\Test namespace.
19$path = $loader->findFile('Composer\\Composer');
20$loader->add('Composer\Test', dirname(dirname(dirname($path))) . '/tests');
An exception for terminatinating execution or to throw for unit testing.
if((! $loader=includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&(! $loader=includeIfExists(__DIR__ . '/../../../autoload.php'))) return $loader
Definition: bootstrap.php:22
$path
Definition: bootstrap.php:19