summaryrefslogtreecommitdiffstats
path: root/phpunit-5.4.0-Autoload.php.in
blob: e8b4c4d977fc854c9c4ff8bf77df7ae68b236a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/* Autoloader for phpunit/phpunit and its dependencies */

if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
    require_once 'Fedora/Autoloader/autoload.php';
}

\Fedora\Autoloader\Autoload::addClassMap(
    array(
        ___CLASSLIST___
    ),
    __DIR__
);

$sym = (getenv('RPM_SYMFONY_TREE') ?: 'Symfony4');
/* don't use symfony autoloader which pull some unwanted stuff (polyfill) */
$vendorDir = stream_resolve_include_path("$sym/Component/Yaml/Yaml.php");
\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\Yaml\\', dirname($vendorDir));

/* Required */
require_once 'File/Iterator/Autoload.php';
require_once 'SebastianBergmann/CodeCoverage/autoload.php';
require_once 'PHP/Timer/Autoload.php';
require_once 'PHPUnit/Framework/MockObject/Autoload.php';
require_once 'Text/Template/Autoload.php';
require_once 'PHP/Invoker/Autoload.php';
require_once 'SebastianBergmann/Diff/autoload.php';
require_once 'SebastianBergmann/Environment/autoload.php';
require_once 'SebastianBergmann/Exporter/autoload.php';
require_once 'SebastianBergmann/Version/autoload.php';
require_once 'SebastianBergmann/Comparator/autoload.php';
require_once 'SebastianBergmann/GlobalState/autoload.php';
require_once 'SebastianBergmann/ObjectEnumerator/autoload.php';
require_once 'Doctrine/Instantiator/autoload.php';
require_once 'Prophecy/autoload.php';
require_once 'SebastianBergmann/ResourceOperations/autoload.php';
require_once 'DeepCopy/autoload.php';

/* Optional */
foreach([
            'PHPUnit/Extensions/Database/Autoload.php',
            'PHPUnit/Extensions/SeleniumCommon/Autoload.php',
            'PHPUnit/Extensions/SeleniumTestCase/Autoload.php',
            'PHPUnit/Extensions/Story/Autoload.php'
        ] as $opt) {
    if ($fic = stream_resolve_include_path($opt)) {
        require_once $fic;
    }
}