summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
blob: c65711c14bb5080b20ac294ba38b61ae7d13868a (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
<?php
/* Autoloader for phpspec/phpspec and its dependencies */

require_once '/usr/share/php/Fedora/Autoloader/autoload.php';

\Fedora\Autoloader\Autoload::addPsr4('PhpSpec\\', __DIR__);

/* spec tree in current dir, when exists */
if (is_dir(getcwd().'/spec')) {
    \Fedora\Autoloader\Autoload::addPsr4('spec\\', getcwd().'/spec');
}

// Dependencies (Rely on include_path as in PHPUnit dependencies + circular dependencies)
\Fedora\Autoloader\Dependencies::required([
    '/usr/share/php/@SYMFONY@/Component/Console/autoload.php',
    '/usr/share/php/@SYMFONY@/Component/EventDispatcher/autoload.php',
    '/usr/share/php/@SYMFONY@/Component/Finder/autoload.php',
    '/usr/share/php/@SYMFONY@/Component/Process/autoload.php',
    '/usr/share/php/@SYMFONY@/Component/Yaml/autoload.php',
    'phpspec/php-diff/autoload.php',
    'Prophecy/autoload.php',
    'Doctrine/Instantiator/autoload.php',
    [
        'SebastianBergmann/Exporter4/autoload.php',
        'SebastianBergmann/Exporter3/autoload.php',
    ],
]);