Allow running tests even if Composer is not installed through itself ;-)
parent
d176f4c07e
commit
17c3e23142
|
@ -10,4 +10,14 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
if (file_exists(__DIR__.'/../vendor/.composer/autoload.php')) {
|
||||
require __DIR__.'/../vendor/.composer/autoload.php';
|
||||
} else {
|
||||
require __DIR__.'/../src/Composer/Autoload/ClassLoader.php';
|
||||
|
||||
$loader = new Composer\Autoload\ClassLoader();
|
||||
$loader->add('Composer\\', dirname(__DIR__).'/src/');
|
||||
$loader->add('Symfony\\Component\\', dirname(__DIR__).'/src/');
|
||||
$loader->add('Composer_', dirname(__DIR__).'/src/');
|
||||
$loader->register();
|
||||
}
|
Loading…
Reference in New Issue