Skip to content

Commit

Permalink
Add recursive find for an autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
cmodijk committed Dec 23, 2017
1 parent b069f19 commit e1dec5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<?php

require __DIR__ . '/../vendor/autoload.php';
foreach ([__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../vendor/autoload.php'] as $file) {
if (file_exists($file)) {
require $file;
break;
}
}

0 comments on commit e1dec5f

Please sign in to comment.