Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0391dff44e
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.535 kB
<?php
if (file_exists($file = __DIR__.'/../vendor/.composer/autoload.php')) {
$loader = require_once $file;
} else {
throw new RuntimeException('Install dependencies to run test suite.');
}
spl_autoload_register(function($class) {
if (0 === strpos($class, 'FOQ\\ElasticaBundle\\')) {
$path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 2)).'.php';
if (!stream_resolve_include_path($path)) {
return false;
}
require_once $path;
return true;
}
});
Jump to Line
Something went wrong with that request. Please try again.