Blob Blame History Raw
<?php
/* Autoloader for phpspec/phpspec and its dependencies */

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

\Fedora\Autoloader\Autoload::addPsr4('PhpSpec\\', __DIR__);
\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', '/usr/share/php/@SYMFONY@/Component');

/* 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([
    'phpspec/php-diff/autoload.php',
    'Prophecy/autoload.php',
    'Doctrine/Instantiator/autoload.php',
    'SebastianBergmann/Exporter3/autoload.php',
]);