summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
blob: 4ab6dde95ca3db1b6373c311e30345c496e9fb13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/* Autoloader for phpspec/phpspec and its dependencies */

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

\Fedora\Autoloader\Autoload::addPsr4('PhpSpec\\', __DIR__);
$vendorDir = stream_resolve_include_path('Symfony/Component/Console/Application.php');
\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', dirname(dirname($vendorDir)));

/* 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)
require_once 'phpspec/php-diff/autoload.php';
require_once 'Prophecy/autoload.php';
require_once 'SebastianBergmann/Exporter/autoload.php';
require_once 'Doctrine/Instantiator/autoload.php';