File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 11
11
convertWarningsToExceptions =" true"
12
12
stopOnFailure =" false"
13
13
syntaxCheck =" false"
14
- bootstrap =" vendor/autoload .php"
14
+ bootstrap =" tests/bootstrap .php"
15
15
>
16
16
17
17
<php >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ if (file_exists (__DIR__ . '/../vendor/autoload.php ' )) {
4
+ // Dependencies were installed with Composer and this is the main project
5
+ $ loader = require_once __DIR__ . '/../vendor/autoload.php ' ;
6
+ } elseif (file_exists (__DIR__ . '/../../../../autoload.php ' )) {
7
+ // We're installed as a dependency in another project's `vendor` directory
8
+ $ loader = require_once __DIR__ . '/../../../../autoload.php ' ;
9
+ } else {
10
+ throw new Exception ('Can \'t find autoload.php. Did you install dependencies with Composer? ' );
11
+ }
12
+
13
+ $ loader ->addPsr4 ('MongoDB \\Tests \\' , __DIR__ );
You can’t perform that action at this time.
0 commit comments