e660ec3
e660ec3
/* Autoloader for phpspec/prophecy and its dependencies */
e660ec3
469f5cc
// Rely on include_path as in PHPUnit dependencies + circular dependencies
469f5cc
5f3f213
require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
e660ec3
5f3f213
\Fedora\Autoloader\Autoload::addPsr4('Prophecy\\', __DIR__);
e660ec3
469f5cc
// Dependencies
e660ec3
require_once 'Doctrine/Instantiator/autoload.php';
95805db
if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock4/autoload.php')) {
95805db
  require_once $dep;
95805db
} else if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock/autoload.php')) {
Shawn Iwinski 3f17460
  require_once $dep;
Shawn Iwinski 3f17460
} else if ($dep = stream_resolve_include_path('phpDocumentor/Reflection/DocBlock2/autoload.php')) {
Shawn Iwinski 3f17460
  require_once $dep;
Shawn Iwinski 3f17460
} else {
Shawn Iwinski 3f17460
  trigger_error('phpDocumentor reflection docblock autoloader not found in include path', E_USER_ERROR);
Shawn Iwinski 3f17460
  exit(1);
Shawn Iwinski 3f17460
}
Shawn Iwinski 3f17460
unset($dep);
415779d
415779d
if (!class_exists('SebastianBergmann\\Comparator\\Comparator')) { // v2 from phpunit, v1 from phpspec
c5991c0
  require_once (stream_resolve_include_path('SebastianBergmann/Comparator3/autoload.php') ?:
c5991c0
               (stream_resolve_include_path('SebastianBergmann/Comparator2/autoload.php') ?:
c5991c0
                'SebastianBergmann/Comparator/autoload.php'));
415779d
}
415779d
if (!class_exists('SebastianBergmann\\RecursionContext\\Context')) { // v3 from phpunit, v2 from phpspec (via exporter)
415779d
  require_once (stream_resolve_include_path('SebastianBergmann/RecursionContext3/autoload.php') ?: 'SebastianBergmann/RecursionContext/autoload.php');
415779d
}