Skip to content

Commit d4551ce

Browse files
committed
Using the better composer autoloading mechanism.
1 parent e709aa5 commit d4551ce

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/bootstrap.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
<?php
22

3-
// Composer autoloader
4-
include __DIR__ . '/../vendor/autoload.php';
3+
$try = array(
4+
__DIR__ . '/../vendor/autoload.php',
5+
__DIR__ . '/../../../autoload.php',
6+
);
7+
8+
foreach($try as $path) {
9+
if (file_exists($path)) {
10+
include $path;
11+
break;
12+
}
13+
}
514

615
// Some extra classes
716
include __DIR__ . '/Sabre/XML/Element/Mock.php';

0 commit comments

Comments
 (0)